Skip to content

[improve][broker] PIP-192: Make unload and transfer admin API functional - #19538

Merged
Demogorgon314 merged 12 commits into
apache:masterfrom
Demogorgon314:Demogorgon314/PIP-192-Make_unload_admin_API_functional
Mar 7, 2023
Merged

Demogorgon314 merged 12 commits into
apache:masterfrom
Demogorgon314:Demogorgon314/PIP-192-Make_unload_admin_API_functional

Conversation

@Demogorgon314

Copy link
Copy Markdown
Member

PIP-192: #16691

Motivation

Currently, the unload and transfer admin API still uses the old logic when enabling the ExtensibleLoadManager,
we need to publish the message to ServiceUnitStateChannel, and wait for its response.

Modifications

This PR added a UnloadManager to handle the duplicate unload request and return a CompletableFuture to the caller, so we can know when the unload operation is finished.

The unload and transfer admin API also been fixed, now we can support do unload when using ExtensibleLoadManager.

Documentation

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

Matching PR in forked repository

PR in forked repository: Demogorgon314#11

@Demogorgon314 Demogorgon314 self-assigned this Feb 16, 2023
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Feb 16, 2023
@Demogorgon314

Copy link
Copy Markdown
Member Author

Waiting for #19525 merge.

@Demogorgon314
Demogorgon314 force-pushed the Demogorgon314/PIP-192-Make_unload_admin_API_functional branch from 6768fa6 to 3f62bd3 Compare February 17, 2023 15:20
@Demogorgon314
Demogorgon314 force-pushed the Demogorgon314/PIP-192-Make_unload_admin_API_functional branch from 3f62bd3 to 77bca64 Compare February 24, 2023 02:39
@Demogorgon314
Demogorgon314 marked this pull request as ready for review February 25, 2023 05:08
@Demogorgon314
Demogorgon314 marked this pull request as draft February 27, 2023 01:26
@Demogorgon314
Demogorgon314 marked this pull request as ready for review February 28, 2023 03:25
…I_functional

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
…I_functional

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
@Demogorgon314

Copy link
Copy Markdown
Member Author

@Technoboy- Ping. Please take a look at this PR, thinks!

@Demogorgon314
Demogorgon314 merged commit b2658af into apache:master Mar 7, 2023
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants