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

PIP-45: Added session events to metadata store #9273

Merged
merged 11 commits into from
Feb 5, 2021

Conversation

merlimat
Copy link
Contributor

Motivation

Added mechanism to send notification on the metadata store session status. This will be used to trigger lock revalidation after a session is lost and also to do best effort approach in avoiding attempting non-essential metadata operations while the client is known not to be connected.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jan 22, 2021
@merlimat merlimat added this to the 2.8.0 milestone Jan 22, 2021
@merlimat merlimat self-assigned this Jan 22, 2021
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM
Just left one question

try {
l.accept(event);
} catch (Throwable t) {
log.warn("Error in processing session event", t);
Copy link
Contributor

Choose a reason for hiding this comment

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

InterruptedException?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Consumer interface doesn't allow to throw InterruptedException and we cannot catch that directly since it's a checked exception. If the listener code does any blocking operation, it would be its responsibility to handle the InterruptedException.

@jiazhai
Copy link
Member

jiazhai commented Feb 1, 2021

/pulsarbot run-failure-checks

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.

LGTM

@rdhabalia
Copy link
Contributor

/pulsarbot run-failure-checks

@merlimat merlimat merged commit 683ee5f into apache:master Feb 5, 2021
@merlimat merlimat deleted the session-events branch February 5, 2021 21:24
merlimat added a commit to merlimat/pulsar that referenced this pull request Apr 6, 2021
* PIP-45: Added session events to metadata store

* Added missing license header

* Fixed session timeout in MockZookeeper

* Increased test timeouts

* Increase session timeout in ZKSessionTest

* Fixed merge issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants