GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pulsar/pip/pip-118.md at master · apache/pulsar

Expand file tree

/

pip-118.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
44 lines (31 loc) · 1.78 KB
/

pip-118.md

Copy path

File metadata and controls

44 lines (31 loc) · 1.78 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

PIP-118: Do not restart brokers when ZooKeeper session expires

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 expires.

The way it works is that, when we lose a ZooKeeper session, the data plane will continue to work undisturbed, relying on the BookKeeper fencing to avoid any inconsistencies.

New topics are not 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:

# 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

Deprecate the old setting and rename it to metadataSessionExpiredPolicy, with default value set to reconnect.

Links

  • Mailing List discussion thread: https://lists.apache.org/thread/t5ylgvcsp11of7lvw7cbf69f5qlpj8ob
  • Mailing List voting thread: https://lists.apache.org/thread/fvfp72zokyd12y0psltwl9gl7j21d8m3
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.