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: Implement CoordinationService on top of MetadataStore #9221

Merged
merged 4 commits into from
Jan 19, 2021

Conversation

merlimat
Copy link
Contributor

Motivation

Added CoordinationService abstraction implemented on top of MetadataStore.

CoordinationService provides:

  • Locks management
  • Leader election
  • Unique numbers generator

@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 15, 2021
@merlimat merlimat added this to the 2.8.0 milestone Jan 15, 2021
@merlimat merlimat self-assigned this Jan 15, 2021
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.

great work.. 👍

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.

Great work!

}

@Override
public synchronized CompletableFuture<Void> updateValue(T newValue) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably we do not need 'synchonized' here, the real critical section is executed in another thread

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need the synchronized for reading the version field

Copy link
Contributor

Choose a reason for hiding this comment

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

Right. Thanks for the clarification

@jiazhai
Copy link
Member

jiazhai commented Jan 18, 2021

/pulsarbot run-failure-checks

@sijie
Copy link
Member

sijie commented Jan 18, 2021

/pulsarbot run-failure-checks

@merlimat merlimat merged commit 29b0f08 into apache:master Jan 19, 2021
@merlimat merlimat deleted the metadata-store-wip branch January 19, 2021 18:51
merlimat added a commit to merlimat/pulsar that referenced this pull request Apr 6, 2021
…#9221)

* PIP-45: CoordinationService

* Fixed test compile

* Handle concurrent write internally
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

5 participants