Fix node local term/version log truncation with long host provider addresses#20432
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
📝 WalkthroughWalkthroughThis pull request adds a configurable limit for truncating cluster formation warning addresses in logs. A new setting Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
6e605e6 to
95dfa41
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20432 +/- ##
============================================
+ Coverage 73.25% 73.35% +0.10%
- Complexity 71979 72039 +60
============================================
Files 5796 5796
Lines 329287 329350 +63
Branches 47419 47432 +13
============================================
+ Hits 241203 241607 +404
+ Misses 68759 68348 -411
- Partials 19325 19395 +70 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
server/src/main/java/org/opensearch/cluster/coordination/ClusterFormationFailureHelper.java
Outdated
Show resolved
Hide resolved
0619656 to
3a95016
Compare
|
❌ Gradle check result for 41cec11: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Hello @andrross The failure is in :distribution:docker:buildArm64DockerImage Re-ran the CI pipeline but issue still persists. Any inputs on, how to address this? |
|
❌ Gradle check result for 043d82d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…ddress provided by host providers is huge Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
…ddress provided by host providers is huge Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
…ddress provided by host providers is huge Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
043d82d to
976ac45
Compare
Removed duplicate entries for node local term and version truncation in logs. Signed-off-by: Srikanth Padakanti <srikanth29.9@gmail.com>
|
❌ Gradle check result for b08c8e3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for b08c8e3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for b08c8e3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for b08c8e3: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…dresses (opensearch-project#20432) Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com> Signed-off-by: Srikanth Padakanti <srikanth29.9@gmail.com> Co-authored-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
…dresses (opensearch-project#20432) Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com> Signed-off-by: Srikanth Padakanti <srikanth29.9@gmail.com> Co-authored-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
Description
This change fixes an issue where a node’s local term and version information could be truncated in cluster formation failure logs when host providers return very long IP addresses or host strings.
The truncation made critical coordination diagnostics difficult, especially in environments with custom or dynamic host providers that emit unusually large address values. This update ensures that the full local term and version information is preserved and logged correctly, improving observability and debuggability during cluster formation failures.
The fix includes:
Related Issues
Resolves #19249
Check List
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.