Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: floating logical replcation test #829

Merged

Conversation

@Gordiychuk
Copy link
Contributor

@Gordiychuk Gordiychuk commented May 21, 2017

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
```
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
@Gordiychuk Gordiychuk mentioned this pull request May 21, 2017
@davecramer davecramer merged commit 2d3e897 into pgjdbc:master May 21, 2017
1 check was pending
1 check was pending
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
davecramer added a commit to davecramer/pgjdbc that referenced this pull request Sep 19, 2017
```
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.