Skip to content

[improve][broker] log sessionId with zk-session-watcher for debugging - #18291

Merged
rdhabalia merged 1 commit into
apache:masterfrom
rdhabalia:zk_log
Nov 1, 2022
Merged

rdhabalia merged 1 commit into
apache:masterfrom
rdhabalia:zk_log

Conversation

@rdhabalia

@rdhabalia rdhabalia commented Nov 1, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

Right now, zk-quorum recovers after leader restart within zk-session-timeout but still it can cause restart for some brokers even if it's not expected. It's really helpful if zk-session-watcher also prints session-id if it has been changed while disconnecting so, it can help admin to configure right synclimit at zk-server configuration or doing additional debugging.

Modifications

Printing sessionId when zk is disconnecting.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@rdhabalia rdhabalia added this to the 2.11.0 milestone Nov 1, 2022
@rdhabalia rdhabalia self-assigned this Nov 1, 2022
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Nov 1, 2022
@rdhabalia rdhabalia changed the title [logging][broker] log sessionId with zk-session-watcher for debugging [improve][broker] log sessionId with zk-session-watcher for debugging Nov 1, 2022
@codecov-commenter

codecov-commenter commented Nov 1, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.71%. Comparing base (0866c3a) to head (89fb565).
⚠️ Report is 3389 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18291      +/-   ##
============================================
- Coverage     38.97%   38.71%   -0.27%     
+ Complexity     8311     8308       -3     
============================================
  Files           683      687       +4     
  Lines         67325    67380      +55     
  Branches       7217     7217              
============================================
- Hits          26239    26085     -154     
- Misses        38079    38282     +203     
- Partials       3007     3013       +6     
Flag Coverage Δ
unittests 38.71% <ø> (-0.27%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 63 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rdhabalia
rdhabalia merged commit 987e0da into apache:master Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants