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

The lite-core module decouples ZooKeeper #2182

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

Conversation

mytang0
Copy link
Member

@mytang0 mytang0 commented Feb 16, 2023

Fixes #2183 .

Changes proposed in this pull request:

The elasticjob-lite-core module decouples ZooKeeper, introduce the implementation of the on-demand registration center when using it.

@codecov-commenter
Copy link

Codecov Report

Merging #2182 (aea9c7f) into master (bf9bf75) will not change coverage.
The diff coverage is 81.81%.

@@            Coverage Diff            @@
##             master    #2182   +/-   ##
=========================================
  Coverage     84.61%   84.61%           
- Complexity     1916     1917    +1     
=========================================
  Files           286      287    +1     
  Lines          6279     6279           
  Branches        695      692    -3     
=========================================
  Hits           5313     5313           
- Misses          646      648    +2     
+ Partials        320      318    -2     
Impacted Files Coverage Δ
...sticjob/lite/api/registry/JobInstanceRegistry.java 41.37% <0.00%> (ø)
...ite/internal/listener/ListenerNotifierManager.java 89.47% <ø> (ø)
...ere/elasticjob/lite/internal/util/ThreadUtils.java 70.00% <70.00%> (ø)
...ticjob/lite/internal/snapshot/SnapshotService.java 89.70% <100.00%> (+3.80%) ⬆️
...ite/internal/election/ElectionListenerManager.java 91.66% <0.00%> (-4.17%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mytang0
Copy link
Member Author

mytang0 commented Feb 17, 2023

Please take a look @TeslaCN

@@ -17,9 +17,14 @@

package org.apache.shardingsphere.elasticjob.lite.api.registry;

import java.util.Arrays;
Copy link
Member

Choose a reason for hiding this comment

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

There are too many unrelated changes in this PR. Please revert them.

Copy link
Member Author

Choose a reason for hiding this comment

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

Caused by reformatting code.

<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-registry-center-zookeeper-curator</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
Copy link
Member

Choose a reason for hiding this comment

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

Could we consider setting it runtime? Otherwise users need to introduce it sperately.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, after decoupling, users are expected to actively introduce.

Copy link
Member

@linghengqian linghengqian left a comment

Choose a reason for hiding this comment

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

  • Will this PR be on the ElasticJob 3.0.4 milestone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The lite-core module decouples ZooKeeper
4 participants