Обсуждение: [JDBC] [pgjdbc/pgjdbc] 2d3e89: bug: floating logical replcation test (#829)
[JDBC] [pgjdbc/pgjdbc] 2d3e89: bug: floating logical replcation test (#829)
От
Vladimir Gordiychuk
Дата:
Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 2d3e8972a0b34106a8b7426619cabf852c38ddaa https://github.com/pgjdbc/pgjdbc/commit/2d3e8972a0b34106a8b7426619cabf852c38ddaa Author: Vladimir Gordiychuk <folyga@gmail.com> Date: 2017-05-21 (Sun, 21 May 2017) Changed paths: M pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationTest.java Log Message: ----------- bug: floating logical replcation test (#829) ``` ERROR: replication slot "pgjdbc_logical_replication_slot" is active for PID 19978 ``` After close replication slot, postgresql require some times to kill previous session before start new, that why need wait when previous session die before restart replication replication via replication slot. More correct way, it's use org.postgresql.replication.PGReplicationStream#close, in that case not necessary wait when previous session die, but current version postgresql still have a bug that not allow stop replication fast enough[1]. 1. http://www.postgresql.org/message-id/CAFgjRd3hdYOa33m69TbeOfNNer2BZbwa8FFjt2V5VFzTBvUU3w@mail.gmail.com