Skip to content

[improve][broker] PIP-192 Added ServiceUnitStateChannel interface - #18079

Merged
codelipenghui merged 5 commits into
apache:masterfrom
heesung-sohn:pip-192
Nov 14, 2022
Merged

codelipenghui merged 5 commits into
apache:masterfrom
heesung-sohn:pip-192

Conversation

@heesung-sohn

@heesung-sohn heesung-sohn commented Oct 18, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #xyz

Master Issue: #16691

Motivation

We will start raising PRs to implement PIP-192, #16691

Modifications

The PR adds base classes for the new broker load balance project and does not integrate with the existing load balance logic --this PR should not impact the existing broker load balance behavior.

For the pip-192 project, this PR

  • defines the classes under org.apache.pulsar.broker.loadbalance.extensions package.
  • defines this ServiceUnitStateChannel public interface and its expected behaviors.
  • defines ServiceUnitState and ServiceUnitStateData data classes.
  • defines Split and Unload data classes.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • *Added unit tests for the new classes.

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

We will have separate PRs to update the Doc later.

Matching PR in forked repository

PR in forked repository: heesung-sohn#11

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants