Skip to content

[pulsar-broker] cluster resources use metadata-store api - #9338

Merged
rdhabalia merged 3 commits into
apache:masterfrom
rdhabalia:zk_rest_cluster
Jan 28, 2021
Merged

[pulsar-broker] cluster resources use metadata-store api#9338
rdhabalia merged 3 commits into
apache:masterfrom
rdhabalia:zk_rest_cluster

Conversation

@rdhabalia

@rdhabalia rdhabalia commented Jan 27, 2021

Copy link
Copy Markdown
Contributor

Motivation

This PR is on top of #9270, with this change, cluster-resources will start using metadata-api and remove zk-dependency.

@rdhabalia rdhabalia added this to the 2.8.0 milestone Jan 27, 2021
@rdhabalia rdhabalia self-assigned this Jan 27, 2021
@rdhabalia

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@rdhabalia
rdhabalia merged commit 0edcaa0 into apache:master Jan 28, 2021
jiazhai pushed a commit to streamnative/kop that referenced this pull request Feb 26, 2021
This version update is convenient for tests in real environment since there's no binary download url for original pulsar `2.8.0-rc-202101252233`.

This PR fixes the API incompatibility problems that are introduced by apache/pulsar#9397 and apache/pulsar#9302.

Another significant change between these two versions is apache/pulsar#9338, which introduced metadata-store API for cluster resources. This PR fixed the test failure caused by it as well. Since KoP `tests` module only uses one `MockZooKeeper` to manage z-nodes, see `KopProtocolHandlerTestBase#createMockZooKeeper`, the mocked `createConfigurationMetadataStore` method returns `mockedZooKeeper` here instead of a `mockedZooKeeperGlobal` like what Pulsar did in `MockedPulsarServiceBaseTest`.

Besides, there's a test bug in `testBrokerHandleTopicMetadataRequest` that was not exposed by the previous Pulsar. This PR fixes it.
merlimat pushed a commit to merlimat/pulsar that referenced this pull request Apr 6, 2021
* [pulsar-broker] Make tenant rest-api async and use metadata-store api

fix tests

fix intermittent test failure

* [pulsar-broker] cluster resources use metadata-store api

* fix test
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.

Project-10: Replace Zookeeper API access in REST resources with Pluggable metadata resources

2 participants