You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2022/12/12 22:19:43 UTC
[GitHub] [helix] NealSun96 opened a new pull request, #2318: Fix rebalancer failure counter in async scenario
NealSun96 opened a new pull request, #2318:
URL: https://github.com/apache/helix/pull/2318
### Issues
- [x] My PR addresses the following Helix issues and references them in the PR description:
Fixes #2062
### Description
- [x] Here are some details about my PR, including screenshots of any UI changes:
Async processes cannot propagate exceptions upwards, so we need to explicitly increment the failure counters during exception handling in the submission block. Since partial rebalance is turning into async, this PR fixes both the old problem (global rebalance missing rebalance failure counter) and the new problem.
### Tests
- The following is the result of the "mvn test" command on the appropriate module:
(If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
### Changes that Break Backward Compatibility (Optional)
- My PR contains changes that break backward compatibility or previous assumptions for certain methods or API. They include:
(Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
### Documentation (Optional)
- In case of new functionality, my PR adds documentation in the following wiki page:
(Link the GitHub wiki you added)
### Commits
- My commits all reference appropriate Apache Helix GitHub issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
1. Subject is separated from body by a blank line
1. Subject is limited to 50 characters (not including Jira issue reference)
1. Subject does not end with a period
1. Subject uses the imperative mood ("add", not "adding")
1. Body wraps at 72 characters
1. Body explains "what" and "why", not "how"
### Code Quality
- My diff has been formatted using helix-style.xml
(helix-style-intellij.xml if IntelliJ IDE is used)
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] jiajunwang commented on pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
jiajunwang commented on PR #2318:
URL: https://github.com/apache/helix/pull/2318#issuecomment-1347553754
If both baseline and partial rebalance fail, will we count 2 times instead
of 1?
Best Regards,
Jiajun
On Mon, Dec 12, 2022 at 4:00 PM Neal Sun ***@***.***> wrote:
> Merged #2318 <https://github.com/apache/helix/pull/2318> into
> nealsun/waged-pipeline-redesign.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/helix/pull/2318#event-8020033799>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AANYM2CD4WR435E3WGXRQMTWM64CVANCNFSM6AAAAAAS4PF4OA>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] NealSun96 commented on pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
NealSun96 commented on PR #2318:
URL: https://github.com/apache/helix/pull/2318#issuecomment-1347546646
@qqu0127 This will be merged into master with feature branch, which happens now. :)
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] NealSun96 commented on pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
NealSun96 commented on PR #2318:
URL: https://github.com/apache/helix/pull/2318#issuecomment-1347596662
@jiajunwang missed your message: yes we will count 2 times. Conceptually, given that these pipelines are separate async pipelines now, counting 2 times does make sense (rebalance failed on 2 occasions with possibly different settings). Operationally, since the metric is used to indicate errors, counting 2 times is mostly similar to counting 1 time (and definitely better than counting 0 times).
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] jiajunwang commented on pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
jiajunwang commented on PR #2318:
URL: https://github.com/apache/helix/pull/2318#issuecomment-1347606011
Agreed. Not a concern.
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] NealSun96 merged pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
NealSun96 merged PR #2318:
URL: https://github.com/apache/helix/pull/2318
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] qqu0127 commented on a diff in pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
qqu0127 commented on code in PR #2318:
URL: https://github.com/apache/helix/pull/2318#discussion_r1046470066
##########
helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/WagedRebalancer.java:
##########
@@ -460,6 +460,7 @@ private void globalRebalance(ResourceControllerDataProvider clusterData, Map<Str
doGlobalRebalance(clusterData, resourceMap, algorithm, currentStateOutput, !waitForGlobalRebalance,
clusterChanges);
} catch (HelixRebalanceException e) {
+ _rebalanceFailureCount.increment(1L);
Review Comment:
For my own understanding, how was it working in the past? Did we simply skip the error and not counting?
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org
[GitHub] [helix] NealSun96 commented on a diff in pull request #2318: Fix rebalancer failure counter in async scenario
Posted by GitBox <gi...@apache.org>.
NealSun96 commented on code in PR #2318:
URL: https://github.com/apache/helix/pull/2318#discussion_r1046485817
##########
helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/WagedRebalancer.java:
##########
@@ -460,6 +460,7 @@ private void globalRebalance(ResourceControllerDataProvider clusterData, Map<Str
doGlobalRebalance(clusterData, resourceMap, algorithm, currentStateOutput, !waitForGlobalRebalance,
clusterChanges);
} catch (HelixRebalanceException e) {
+ _rebalanceFailureCount.increment(1L);
Review Comment:
Yes, Global Rebalance failure was never accounted for in the failure metric. See #2062 .
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org