Skip to content

The lite-core module decouples ZooKeeper #2182

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

Closed
wants to merge 1 commit into 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-commenter commented Feb 16, 2023

Codecov Report

Attention: Patch coverage is 81.81818% with 4 lines in your changes missing coverage. Please review.

Project coverage is 84.61%. Comparing base (bf9bf75) to head (aea9c7f).
Report is 221 commits behind head on master.

Files with missing lines Patch % Lines
...ere/elasticjob/lite/internal/util/ThreadUtils.java 70.00% 3 Missing ⚠️
...sticjob/lite/api/registry/JobInstanceRegistry.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@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?

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.

@mytang0 mytang0 closed this Jul 30, 2024
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