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

Fixing support for a multi-node cluster via "gradle run" #1455

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

kartg
Copy link
Member

@kartg kartg commented Oct 27, 2021

Description

This change updates the logic in RunTask to use deterministic port values for all nodes rather than just the first node in a cluster. The local address of the first node is also used as the seed_hosts value to allow the cluster to form correctly.

Signed-off-by: Kartik Ganesh [email protected]

Issues Resolved

N/A

Check List

  • New functionality includes testing.
    • [x ] All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • [ x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 100adf67d067e06420721b8523425be7ba359e5e

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 100adf67d067e06420721b8523425be7ba359e5e

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 100adf67d067e06420721b8523425be7ba359e5e

@saratvemulapalli
Copy link
Member

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 100adf67d067e06420721b8523425be7ba359e5e
Log 855

Reports 855

@CEHENKLE
Copy link
Member

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 100adf67d067e06420721b8523425be7ba359e5e
Log 861

Reports 861

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 6906f42a942eff549550fadf16117d4bd90c5a9d

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 14bb5cdbb7f2f7aadcabff67a906f512076ea49e

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 6906f42a942eff549550fadf16117d4bd90c5a9d

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success d21b1dafc3725684662d77efc1da74f60eb202a0

@kartg kartg changed the title Simplifying TestClustersAware and fixing support for a multi-node cluster in Gradle tasks Fixing support for a multi-node cluster via "gradle run" Oct 29, 2021
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 14bb5cdbb7f2f7aadcabff67a906f512076ea49e

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success d21b1dafc3725684662d77efc1da74f60eb202a0

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 6906f42a942eff549550fadf16117d4bd90c5a9d
Log 873

Reports 873

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 14bb5cdbb7f2f7aadcabff67a906f512076ea49e
Log 874

Reports 874

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure d21b1dafc3725684662d77efc1da74f60eb202a0
Log 875

Reports 875

@kartg kartg force-pushed the localMultiNode branch 2 times, most recently from 996982e to c45eb38 Compare October 29, 2021 01:59
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Wrapper Validation failure 996982e83e5f9c6b168718b0a490f1120eb96bff

:alert: Gradle Wrapper integrity has been altered

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 996982e83e5f9c6b168718b0a490f1120eb96bff
Log 881

Reports 881

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Precommit failure 996982e83e5f9c6b168718b0a490f1120eb96bff
Log 1460

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success c45eb387091ce97f3303acb6a320cf9c6f35d7ff

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success c45eb387091ce97f3303acb6a320cf9c6f35d7ff

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure c45eb387091ce97f3303acb6a320cf9c6f35d7ff
Log 882

Reports 882

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 6b6d46e9ca34f1f0dea9000fb530f0e040a9dcd3

@kartg
Copy link
Member Author

kartg commented Oct 29, 2021

Seems like the Gradle check failure is unrelated to this code change. The BWC tests are failing for v1.2 and this is tied to the Lucene 8.10.1 upgrade. The fix is tracked in this PR - #1460

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 6b6d46e9ca34f1f0dea9000fb530f0e040a9dcd3

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 6b6d46e9ca34f1f0dea9000fb530f0e040a9dcd3
Log 889

Reports 889

This change updates the logic in RunTask to use deterministic port values for all nodes rather than just the first node in a cluster. The local address of the first node is also used as the seed_hosts value to allow the cluster to form correctly. The seed_hosts setting is also allow-listed as an overrideable value.

Signed-off-by: Kartik Ganesh <[email protected]>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 73ce7bb

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 73ce7bb

@CEHENKLE
Copy link
Member

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 73ce7bb
Log 891

Reports 891

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 73ce7bb
Log 897

Reports 897

@dblock dblock requested a review from mch2 October 30, 2021 01:06
@CEHENKLE CEHENKLE merged commit 2c1e89a into opensearch-project:main Nov 1, 2021
@kartg kartg deleted the localMultiNode branch November 1, 2021 21:56
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