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

If there is an error in reading from ZK, DiscoveryService should fail when reading partitions metadata #272

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Mar 2, 2017

Motivation

The lookup for the partitioned topic metadata should not silently succeed when the discovery service is failing at getting the info from ZK.

Modifications

Fixed the ZK cache to throw exception instead of Optional.empty() on any error different from a ZK NoNodeException.

@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Mar 2, 2017
@merlimat merlimat added this to the 1.17 milestone Mar 2, 2017
@merlimat merlimat self-assigned this Mar 2, 2017
Copy link
Contributor

@rdhabalia rdhabalia left a comment

Choose a reason for hiding this comment

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

👍
I just added related change in commit of existing PR : #270

@merlimat merlimat merged commit 9d274a1 into apache:master Mar 2, 2017
@merlimat merlimat deleted the partitioned-metadata-zk-error branch March 2, 2017 20:04
sijie added a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
The `compile` scope in dependency plugin means : compile, provided, and system dependencies
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
This PR is the first step to port Kafka Streams' [integration tests](https://github.com/apache/kafka/tree/2.0/streams/src/test/java/org/apache/kafka/streams/integration) to KoP.

There're two main differences from the original tests in Kafka:
1. Kafka's tests use a lot of util methods from different modules, so this PR adds a `TestUtils.java` to collect all necessary util methods.
2. This PR abstracts a base class for reused variables and methods.

Based on the framework, this PR ports the tests for `GlobalKTable`. It should be noted that in `shouldRestoreGlobalInMemoryKTableOnRestart` we sleep for 1 second after `startStreams()` because it may take a few milliseconds to wait streams started in KoP.

Finally, the old test for word count example is deleted since it will be redundant after tests are ported.
dlg99 added a commit to dlg99/pulsar that referenced this pull request May 23, 2024
dlg99 added a commit to dlg99/pulsar that referenced this pull request May 28, 2024
dlg99 added a commit to dlg99/pulsar that referenced this pull request Sep 9, 2024
dlg99 added a commit to dlg99/pulsar that referenced this pull request Sep 16, 2024
dlg99 added a commit to dlg99/pulsar that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants