Skip to content
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

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

Merged
merged 3 commits into from
Jan 28, 2021

Conversation

rdhabalia
Copy link
Contributor

@rdhabalia rdhabalia commented Jan 27, 2021

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
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
No open projects
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