Remove waiting on message deletion if current state is already updated#1068
Merged
jiajunwang merged 4 commits intoapache:masterfrom Jun 23, 2020
Merged
Remove waiting on message deletion if current state is already updated#1068jiajunwang merged 4 commits intoapache:masterfrom
jiajunwang merged 4 commits intoapache:masterfrom
Conversation
jiajunwang
reviewed
Jun 8, 2020
helix-core/src/main/java/org/apache/helix/controller/stages/MessageGenerationPhase.java
Outdated
Show resolved
Hide resolved
jiajunwang
approved these changes
Jun 9, 2020
|
|
||
| double ratio = ((double) p2pTrigged) / ((double) total); | ||
| Assert.assertTrue(ratio > 0.6, String | ||
| Assert.assertTrue(ratio == 1, String |
Contributor
There was a problem hiding this comment.
nit, you can use Assert.assertEquals(p2pTrigged, total) now.
8f13526 to
076b74b
Compare
jiajunwang
requested changes
Jun 11, 2020
helix-core/src/main/java/org/apache/helix/controller/stages/MessageGenerationPhase.java
Show resolved
Hide resolved
Contributor
Author
|
This PR is ready to merge, approved by @dasahcc |
huizhilu
pushed a commit
to huizhilu/helix
that referenced
this pull request
Aug 16, 2020
apache#1068) Remove the waiting logic in message generation phase on message deletion if current state is already updated. This will help increase the rate of P2P message during mastership handoff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
(#1067 )
Description
This PR remove the waiting on existing pending message if the message is already processed and current state has already been updated. This would help generate message earlier and increase the rate of P2P message.
Tests
The following tests are written for this issue:
Two tests are heavily modified:
TestP2PMessagesAvoidDuplicatedMessage
TestP2PStateTransitionMessages
The following is the result of the "mvn test" command on the appropriate module:
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestRebalancePipeline.testMsgTriggeredRebalance:203 expected: but was:
[ERROR] TestJobQueueCleanUp.testJobQueueAutoCleanUp » ThreadTimeout Method org.testng....
[ERROR] TestTaskNumAttempts.testTaskNumAttemptsWithDelay:76 expected:<2> but was:<1>
[ERROR] TestTaskRebalancer.timeouts » ThreadTimeout Method org.testng.internal.TestNGM...
[INFO]
[ERROR] Tests run: 1145, Failures: 4, Errors: 0, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 h
[INFO] Finished at: 2020-06-22T12:14:24-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project helix-core: There are test failures.
[ERROR]
helix-rest
[INFO] Tests run: 162, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.34 s - in TestSuite
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 162, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.589 s
[INFO] Finished at: 2020-06-09T19:12:40-07:00
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)