Skip to content

Fix the AlreadyClosedException used in leader election - #10468

Merged
eolivelli merged 1 commit into
apache:masterfrom
fantapsody:fix-meta-exception
May 3, 2021
Merged

eolivelli merged 1 commit into
apache:masterfrom
fantapsody:fix-meta-exception

Conversation

@fantapsody

Copy link
Copy Markdown
Contributor

Motivation

From the context, it looks to me that the exception thrown in the line

new AlreadyClosedException("The leader election was already closed")))
should be an org.apache.pulsar.metadata.api.MetadataStoreException.AlreadyClosedException rather than an org.apache.pulsar.client.api.PulsarClientException.AlreadyClosedException.

Modifications

Change the AlreadyClosedException that imported.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

@eolivelli
eolivelli merged commit f440408 into apache:master May 3, 2021
@eolivelli

Copy link
Copy Markdown
Contributor

Committed to master branch, thank you @fantapsody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants