Skip to content

[improve] [broker] PIP-307 Consumer#1

Closed
dragosvictor wants to merge 26 commits into
masterfrom
pip-307-consumer
Closed

[improve] [broker] PIP-307 Consumer#1
dragosvictor wants to merge 26 commits into
masterfrom
pip-307-consumer

Conversation

@dragosvictor

@dragosvictor dragosvictor commented Nov 6, 2023

Copy link
Copy Markdown
Owner

Fixes #xyz

Main Issue: #xyz

PIP: PIP-307

Motivation

Modifications

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:

@dragosvictor dragosvictor marked this pull request as ready for review November 7, 2023 20:55
@dragosvictor dragosvictor marked this pull request as draft November 7, 2023 21:00
@dragosvictor dragosvictor marked this pull request as ready for review November 7, 2023 21:36
@dragosvictor dragosvictor changed the title [WIP] PIP-307 Consumer [improve] [broker] PIP-307 Consumer Nov 7, 2023
@dragosvictor dragosvictor changed the title [improve] [broker] PIP-307 Consumer [run-tests] [improve] [broker] PIP-307 Consumer Nov 7, 2023
@dragosvictor dragosvictor changed the title [run-tests] [improve] [broker] PIP-307 Consumer [improve] [broker] [run-tests] PIP-307 Consumer Nov 7, 2023
producers.values().forEach(producer -> futures.add(producer.disconnect(lookupData)))
brokerService.getPulsar(), topic).thenAccept(lookupData -> {
producers.values().forEach(producer -> futures.add(producer.disconnect(lookupData)));
subscriptions.forEach((s, sub) -> futures.add(sub.disconnect(lookupData)));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to confirm the dispatching behavior when we close the topic with disconnectClients=false.

I think our expectation is to stop dispatching messages to consumers when the ledger is fenced. Could we confirm if this happens correctly? (also we probably want to add some metrics to show dispatcher pause time too. This can be a separate PR too.)

@dragosvictor dragosvictor changed the title [improve] [broker] [run-tests] PIP-307 Consumer [improve] [broker] PIP-307 Consumer Nov 9, 2023
@github-actions github-actions Bot added the PIP label Dec 5, 2023
@github-actions github-actions Bot removed the PIP label Dec 5, 2023
@github-actions github-actions Bot added the PIP label Dec 11, 2023
@github-actions github-actions Bot removed the PIP label Dec 11, 2023
@dragosvictor dragosvictor deleted the pip-307-consumer branch December 15, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants