You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/14 18:01:14 UTC
[GitHub] [pulsar] merlimat opened a new issue #13304: PIP-118: Do not restart brokers when ZooKeeper session expires
merlimat opened a new issue #13304:
URL: https://github.com/apache/pulsar/issues/13304
## Motivation
After all the work done for PIP-45 that was already included in 2.8 and 2.9
releases, it enabled the concept of re-acquirable resource locks and leader
election.
Another important change was to avoid doing any deferrable metadata operation
when we know that we are not currently connected to the metadata service.
Finally, that enabled to stabilize in 2.9 the configuration setting that allows
brokers to continue operating in a safe mode when the session with ZooKeeper
is expired.
The way it works is that, when we lose a ZooKeeper session, the data plane will
continue to work undisturbed, relying the BookKeeper fencing to avoid any
inconsistencies.
New topics are not be able to get started, but existing topics will see no
impact.
The original intention for shutting down the brokers was to ensure that we
would automatically go back to a consistent state, with respect to which
resources are "owned" in ZooKeeper by a given broker.
With the re-acquirable resource locks, that problem was solved and thoroughly
tested to be robust.
## Proposed changes
In 2.10 release, for the setting:
```properties
# There are two policies to apply when broker metadata session expires: session expired happens, "shutdown" or "reconnect".
# With "shutdown", the broker will be restarted.
# With "reconnect", the broker will keep serving the topics, while attempting to recreate a new session.
zookeeperSessionExpiredPolicy=shutdown
```
Change its default value to `reconnect`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tomscut removed a comment on issue #13304: PIP-118: Do not restart brokers when ZooKeeper session expires
Posted by GitBox <gi...@apache.org>.
tomscut removed a comment on issue #13304:
URL: https://github.com/apache/pulsar/issues/13304#issuecomment-994198672
I want to try to implement this feature, could you assign it to me. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui closed issue #13304: PIP-118: Do not restart brokers when ZooKeeper session expires
Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #13304:
URL: https://github.com/apache/pulsar/issues/13304
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui closed issue #13304: PIP-118: Do not restart brokers when ZooKeeper session expires
Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #13304:
URL: https://github.com/apache/pulsar/issues/13304
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tomscut commented on issue #13304: PIP-118: Do not restart brokers when ZooKeeper session expires
Posted by GitBox <gi...@apache.org>.
tomscut commented on issue #13304:
URL: https://github.com/apache/pulsar/issues/13304#issuecomment-994198672
I want to try to implement this feature, could you assign it to me. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org