-
Notifications
You must be signed in to change notification settings - Fork 4.1k
STORM-2608 Remove any pending offsets that are no longer valid #2182
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
Conversation
|
I've added a test case for this. Its a bit complicated due to the specific nature of how the bug occurs so I'm open to suggestions on how to improve it. |
|
@kevinconaway Btw, I'd like to see the PR against master branch too. Please note that checkstyle is applied to the master branch. |
| @@ -0,0 +1,202 @@ | |||
| package org.apache.storm.kafka; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apache license header is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Sure, I'll wait until this is finalized and then submit a PR with the changes against master. Does that work? |
|
@kevinconaway Sure. I'll review the test code and let you know. |
|
@kevinconaway I think this is really odd but happens anyway. Seems like running test cluster inside of test seems not working on Travis CI build. If you're willing to resolve the build failure, please enable Travis CI in your fork, and fix it. I'm even OK to remove the test code and just having one-liner change. |
|
@kevinconaway |
|
It succeeds for me locally. The NPE that you mentioned is actually due to another error in the The |
|
@kevinconaway Your last change seemed to make compilation failure. Could you ensure that it succeeds to build with both JDK7 and JDK8? |
|
The constructor for |
|
Your patch seems not remedy the NPE issue. Same exception raised for newer build. https://travis-ci.org/apache/storm/jobs/251340422 |
|
Thanks for your patience on this. I did some debugging on Travis on my fork and found 2 issues
I fixed the second issue by waiting until the topic is fully ready in kafka (exists in zookeeper and all partitions have leaders) before attempting to use it. I also adjusted the logic around emitting messages from the partition manager to allow for timing delays on the broker end as this was another cause of spurious failures. I've also adjusted the integration-test parent pom version to match the current one in the branch. It looks like this was missed when the version was bumped to 1.2.0-SNAPSHOT |
|
@kevinconaway |
* Implement HBase state backend * picked Redis state backend implementation * also implemented state iterator * Added 'how to set up' to State-checkpointing doc * address @arunmahadevan's review comment
STORM-2608 Add test case STORM-2608 Add missing license header STORM-2608 Ensure that the topic is created and available in ZK before returning from #createTopic STORM-2608 Update to latest from 1.x branch STORM-2608 Fix IT pom version STORM-2608 Ensure that partitions have leaders before returning from createTopic STORM-2608 Remove any pending offsets that are no longer valid
|
I borked the history trying to squash the commits. I've created a separate PR: Closing this out |
Fixes for https://issues.apache.org/jira/browse/STORM-2608
@abhishekagarwal87 or @revans2 please let me know your thoughts here.