You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by "wardlican (via GitHub)" <gi...@apache.org> on 2026/04/10 06:23:36 UTC
[PR] [Subtask]: Optimizations and troubleshooting for the Master-Slave mode. #4171 [amoro]
wardlican opened a new pull request, #4174:
URL: https://github.com/apache/amoro/pull/4174
## Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you add a feature, you can talk about its use case.
2. If you fix a bug, you can clarify why it is a bug.
3. Use Fix/Resolve/Close #{ISSUE_NUMBER} to link this PR to its related issue
-->
Close #4171 .
## Brief change log
1. For existing historical tables, if Master-Slave mode is enabled, a `bucket_id` must be assigned to them.
2. Fixed an issue where concurrent addition of new tables could result in multiple tables being assigned the same `bucket_id`, leading to bucket imbalance.
3. Fixed an issue in Master-Slave mode where the `-msm` flag was not passed during the optimizer's startup.
4. Fixed an issue where tables were erroneously deleted following a migration.
-
## How was this patch tested?
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] Run test locally before making a pull request
## Documentation
- Does this pull request introduce a new feature? (yes / no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Subtask]: Optimizations and troubleshooting for the Master-Slave mode. [amoro]
Posted by "czy006 (via GitHub)" <gi...@apache.org>.
czy006 merged PR #4174:
URL: https://github.com/apache/amoro/pull/4174
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Subtask]: Optimizations and troubleshooting for the Master-Slave mode. [amoro]
Posted by "wardlican (via GitHub)" <gi...@apache.org>.
wardlican commented on PR #4174:
URL: https://github.com/apache/amoro/pull/4174#issuecomment-4242070538
> Offline nodes with missing `last_update_time` may never be reclaimed
>
> In `AmsAssignService.detectNodeChanges` (around lines 528-545), a node is marked offline only when `lastUpdateTime > 0 && (currentTime - lastUpdateTime) > nodeOfflineTimeoutMs`.
>
> However, both `DBBucketAssignStore#getLastUpdateTime` and `ZkBucketAssignStore#getLastUpdateTime` return `0` when the timestamp is missing. In that case, a node that is already absent from the alive-node list will never enter the offline branch, so its buckets are never redistributed. This can leave bucket ownership stranded and prevent load recovery.
>
> Treat `lastUpdateTime <= 0` as an offline-eligible case when the node is not in `aliveNodeKeys`, and reclaim buckets directly; or Keep a short grace period, but after the grace period, force offline even if timestamp is missing.
Okay, I will fix this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Subtask]: Optimizations and troubleshooting for the Master-Slave mode. [amoro]
Posted by "czy006 (via GitHub)" <gi...@apache.org>.
czy006 commented on PR #4174:
URL: https://github.com/apache/amoro/pull/4174#issuecomment-4241654408
P1: Offline nodes with missing may never be reclaimed\n\nIn (around lines 528-545), a node is marked offline only when .\n\nHowever, both and return when the timestamp is missing. In that case, a node that is already absent from the alive-node list will never enter the offline branch, so its buckets are never redistributed. This can leave bucket ownership stranded and prevent load recovery.\n\nSuggested fix:\n1. Treat as an offline-eligible case when the node is not in , and reclaim buckets directly; or\n2. Keep a short grace period, but after the grace period, force offline even if timestamp is missing.\n\nAt minimum, please avoid the current indefinite-wait path for when the node is not alive.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org