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

SOLR-16705: Remove useless Zookeeper checks #1465

Merged
merged 2 commits into from Apr 11, 2023
Merged

Conversation

psalagnac
Copy link
Contributor

https://issues.apache.org/jira/browse/SOLR-16705

Description

In class ShardLeaderElectionContext, call to method areAllReplicasParticipating() is useless and we ignore the returned value.

Solution

Remove some useless code with ZK calls in shard leader election.

Tests

No test added for this.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

@markrmiller
Copy link
Member

areAllReplicasParticipating

This should have been made obsolete with the introduction of the LIR term work. Which is probably why the return value is not used, but obviously the call wasn't removed.

@psalagnac
Copy link
Contributor Author

Hi @markrmiller,
Thanks for looking into this.
Is this change good to be merged? Is something else required?
Thanks

@murblanc
Copy link
Member

murblanc commented Apr 4, 2023

@markrmiller @noblepaul I plan to merge this 5 days from now (April 9th) if there's no disagreement

@murblanc murblanc merged commit 3d02801 into apache:main Apr 11, 2023
2 of 3 checks passed
@psalagnac psalagnac deleted the useless-zk branch April 11, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants