Skip to content

<fix>[mn]: synchronize hash ring operations#4432

Open
zstack-robot-2 wants to merge 1 commit into
5.4.10from
sync/yaohua.wu/bugfix/ZSTAC-86294-5.4.10
Open

<fix>[mn]: synchronize hash ring operations#4432
zstack-robot-2 wants to merge 1 commit into
5.4.10from
sync/yaohua.wu/bugfix/ZSTAC-86294-5.4.10

Conversation

@zstack-robot-2

Copy link
Copy Markdown
Collaborator

ZSTAC-86294

Summary

Backport the ZSTAC-78182 zstack fix to 5.4.10.

Root Cause

Management node lifecycle reconciliation can race with lifecycle callbacks, causing NodeHash/Nodes inconsistency and task stalling.

Fix

Synchronize ResourceDestinationMaker hash ring operations and serialize management node lifecycle reconciliation with two-round missing-node confirmation.

Verification

  • Cherry-pick to upstream/5.4.10 completed cleanly.
  • git diff --check upstream/5.4.10..HEAD passed.
  • Full regression was not run locally.

Related: ZSTAC-86294, ZSTAC-78182

sync from gitlab !10394

Backport the management node hash ring fix to 5.4.10.

1. Why?
Management node lifecycle reconciliation can race with callbacks.
This can cause NodeHash or Nodes inconsistency and task stalling.

2. How?
Synchronize hash ring operations and use defensive copies.
Add lifecycle reconciliation locking and two-round missing checks.

3. Side effects?
Management node lifecycle operations are serialized by a local lock.

# Summary of changes (by module):
- core: synchronize resource destination hash ring operations.
- portal: serialize management node lifecycle reconciliation.

Source-Commit: 66ab572
Related: ZSTAC-86294, ZSTAC-78182
Change-Id: I3ba21ffc7b8f1284e17d50da7b027ffdad70828b
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3a34025d-43f8-494c-809f-c5cdc09e62e9

📥 Commits

Reviewing files that changed from the base of the PR and between 08177ca and 7e46fa5.

📒 Files selected for processing (2)
  • core/src/main/java/org/zstack/core/cloudbus/ResourceDestinationMakerImpl.java
  • portal/src/main/java/org/zstack/portal/managementnode/ManagementNodeManagerImpl.java

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Could not fetch remote config from http://open.zstack.ai:20001/code-reviews/zstack-cloud.yaml: TimeoutError: The operation was aborted due to timeout
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sync/yaohua.wu/bugfix/ZSTAC-86294-5.4.10

Comment @coderabbitai help to get the list of available commands.

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.

2 participants