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] Fix expiry monitor to continue on non-recoverable error #4818

Merged
merged 3 commits into from
Aug 14, 2019

Conversation

rdhabalia
Copy link
Contributor

Motivation

In #1046, we have added a flag (autoSkipNonRecoverableData) and mechanism to recover cursor if ledger data is deleted. However, expiery-monitor doesn't use that flag and it gets stuck when it finds non-recoverable ml-error while cleaning up expired message.

Modification

Expiry-monitor can skip non-recoverable managed-ledger exception (eg: data/ledger doesn't exist anymore) when autoSkipNonRecoverableData flag is enabled.

@rdhabalia rdhabalia added this to the 2.5.0 milestone Jul 25, 2019
@rdhabalia rdhabalia self-assigned this Jul 25, 2019
*
* @return ManagedLedger
*/
ManagedLedger getManagedLedger();
Copy link
Member

Choose a reason for hiding this comment

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

seems this interface change need add implementation methods for all child class, including that in tests.

managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedCursorTest.java:[2079,13] method does not override or implement a method from a supertype

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes..fixed it.

@rdhabalia
Copy link
Contributor Author

rerun java8 tests
rerun integration tests

@rdhabalia
Copy link
Contributor Author

rerun java8 tests

@sijie sijie merged commit c5ba529 into apache:master Aug 14, 2019
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.

None yet

3 participants