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

[fix] PulsarLedgerManager: add missed return statement #16607

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

michaeljmarshall
Copy link
Member

@michaeljmarshall michaeljmarshall commented Jul 14, 2022

Motivation

I observed the following error log in the bookkeeper:

2022-07-13T23:42:21,390+0000 [main-EventThread] ERROR org.apache.pulsar.metadata.bookkeeper.PulsarLedgerManager - Could not read metadata for ledger: 154498: java.util.NoSuchElementException: No value present

In looking closer, the error happens because there is a missing return statement after completing a promise.

The bug is cosmetic because the promise is completed with the correct error.

Modifications

  • Add a return statement after completing the promise.

Verifying this change

No tests are needed since the effect of this bug is only a confusing log line.

Does this pull request potentially affect one of the following parts:

This is not a breaking change.

Documentation

  • doc-not-needed

@merlimat
Copy link
Contributor

This should only be relevant for backporting to 2.10 branch.

@michaeljmarshall
Copy link
Member Author

@merlimat - makes sense, thanks.

@michaeljmarshall michaeljmarshall deleted the add-missing-return branch July 14, 2022 21:06
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.10.2 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.

3 participants