Skip to content

[fix][broker] Fix Metadata Event Synchronizer producer creation retry so that the producer gets created eventually #24081

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

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

rdhabalia
Copy link
Contributor

@rdhabalia rdhabalia commented Mar 14, 2025

Motivation

Currently, Metadata Event Syncrhonizer is not using scheduled-executor because of which Synchronizer is not able to recreate the event producer in case of initial failure. This PR will replace the correct schefduler and makes sure that producer will be created after the retries.

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
  • The metrics
  • 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 area/broker doc-not-needed Your PR changes do not impact docs ready-to-test labels Mar 14, 2025
@rdhabalia rdhabalia self-assigned this Mar 14, 2025
Copy link

@rdhabalia Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@github-actions github-actions bot added doc-not-needed Your PR changes do not impact docs and removed doc-not-needed Your PR changes do not impact docs doc-label-missing labels Mar 14, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.21%. Comparing base (bbc6224) to head (af81a8b).
Report is 974 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24081      +/-   ##
============================================
+ Coverage     73.57%   74.21%   +0.64%     
+ Complexity    32624    32060     -564     
============================================
  Files          1877     1863      -14     
  Lines        139502   144308    +4806     
  Branches      15299    16458    +1159     
============================================
+ Hits         102638   107105    +4467     
+ Misses        28908    28756     -152     
- Partials       7956     8447     +491     
Flag Coverage Δ
inttests 26.84% <0.00%> (+2.26%) ⬆️
systests 23.21% <0.00%> (-1.12%) ⬇️
unittests 73.72% <100.00%> (+0.87%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...roker/service/PulsarMetadataEventSynchronizer.java 45.56% <100.00%> (+45.56%) ⬆️

... and 1065 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.

@lhotari lhotari added this to the 4.1.0 milestone Mar 17, 2025
@lhotari lhotari changed the title [fix][broker] Fix broker is not able to schedule producer-creation task after failure [fix][broker] Fix Metadata Event Synchronizer producer creation retry so that the producer gets created eventually Mar 17, 2025
@lhotari lhotari merged commit 6622ff7 into apache:master Mar 17, 2025
58 of 59 checks passed
lhotari pushed a commit that referenced this pull request Mar 17, 2025
… so that the producer gets created eventually (#24081)

(cherry picked from commit 6622ff7)
lhotari pushed a commit that referenced this pull request Mar 17, 2025
… so that the producer gets created eventually (#24081)

(cherry picked from commit 6622ff7)
lhotari pushed a commit that referenced this pull request Mar 17, 2025
… so that the producer gets created eventually (#24081)

(cherry picked from commit 6622ff7)
@rdhabalia rdhabalia deleted the sync_exe branch March 17, 2025 16:58
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 21, 2025
… so that the producer gets created eventually (apache#24081)

(cherry picked from commit 6622ff7)
(cherry picked from commit d224359)
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 21, 2025
… so that the producer gets created eventually (apache#24081)

(cherry picked from commit 6622ff7)
(cherry picked from commit d224359)
nodece pushed a commit to nodece/pulsar that referenced this pull request Mar 27, 2025
… so that the producer gets created eventually (apache#24081)

(cherry picked from commit 6622ff7)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 28, 2025
… so that the producer gets created eventually (apache#24081)

(cherry picked from commit 6622ff7)
(cherry picked from commit 8b0112d)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 29, 2025
… so that the producer gets created eventually (apache#24081)

(cherry picked from commit 6622ff7)
(cherry picked from commit 8b0112d)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 31, 2025
… so that the producer gets created eventually (apache#24081)

(cherry picked from commit 6622ff7)
(cherry picked from commit 8b0112d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants