Skip to content

ZOOKEEPER-4549: ProviderRegistry may be repeatedly initialized #1888

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lanicc
Copy link
Contributor

@lanicc lanicc commented May 26, 2022

We run two ZooKeeperServerEmbedded in one JVM and find that ProviderRegistry was initialized repeatedly.

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

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

LGTM

@maoling maoling closed this Jun 17, 2022
@maoling maoling reopened this Jun 17, 2022
@asfgit asfgit closed this in 3fd25d4 Jun 17, 2022
@maoling
Copy link
Member

maoling commented Jun 17, 2022

@lanicc
Thanks for your contribution.

@maoling
Copy link
Member

maoling commented Jun 19, 2022

@tisonkun
Copy link
Member

@maoling yeah..That's a mistake since this is not a singleton pattern.

I think we should revert this change.

@lanicc
Copy link
Contributor Author

lanicc commented Jun 19, 2022

Each zkServer should hold a single ProviderRegistry object instead of sharing one. It's right? @maoling @tisonkun

@maoling maoling reopened this Jun 20, 2022
@eolivelli
Copy link
Contributor

in tests we start multiple ZK servers.
using static variables makes it a mess to run such kinds of tests.
we should git revert this patch and find a different fix

@maoling

@lanicc
Copy link
Contributor Author

lanicc commented Jul 1, 2022

@maoling How should we deal with this problem?

anurag-harness pushed a commit to anurag-harness/zookeeper that referenced this pull request Jan 13, 2023
We run two ZooKeeperServerEmbedded in one JVM and find that ProviderRegistry was initialized repeatedly.

Author: lanicc <[email protected]>

Reviewers: Enrico Olivelli <[email protected]>, tison <[email protected]>, maoling <[email protected]>

Closes apache#1888 from lanicc/ZOOKEEPER-4549
anurag-harness added a commit to anurag-harness/zookeeper that referenced this pull request Jan 13, 2023
We run two ZooKeeperServerEmbedded in one JVM and find that ProviderRegistry was initialized repeatedly.

Author: lanicc <[email protected]>

Reviewers: Enrico Olivelli <[email protected]>, tison <[email protected]>, maoling <[email protected]>

Closes apache#1888 from lanicc/ZOOKEEPER-4549

Co-authored-by: lanicc <[email protected]>
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.

5 participants