Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow up change: NPE in IntermediateStateCalc #2673

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

desaikomal
Copy link
Contributor

Issues

  • My PR addresses the following Helix issues and references them in the PR description:

Description

  • Here are some details about my PR, including screenshots of any UI changes:

(Write a concise description including what, why, how)
Junkai in my previous PR commented that we shouldn't continue but skip sorting message priority but still proceed with message throttling.
Here is the link to previous review: #2668

Tests

  • The following tests are written for this issue:

(List the names of added unit/integration 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.)

[ERROR] Failures: 
[ERROR]   TestNoThrottleDisabledPartitions.testDisablingTopStateReplicaByDisablingInstance:98 expected:<false> but was:<true>
[ERROR]   TestClusterMaintenanceMode.testMaintenanceHistory:412 expected:<EXIT> but was:<ENTER>
[ERROR] Tests run: 1369, Failures: 2, Errors: 0, Skipped: 5
[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] 

Skip tests are due to jackson mismatch.
testExpiredOnDemandRebalanceTimestamp(Waged)
testExpiredOnDemandRebalanceTimestamp(Delayed)
testOnDemandRebalance
testOnDemandRebalanceAfterDelayRebalanceHappen (Waged)
testOnDemandRebalanceAfterDelayRebalanceHappen (Delayed)

START TestDelayedWagedRebalanceWithRackaware at Wed Oct 18 04:00:47 PDT 2023
646346 [TestNGInvoker-testDisableDelayRebalanceInCluster()] ERROR org.apache.helix.zookeeper.datamodel.serializer.ZNRecordSerializer [] - Exception during deserialization of bytes: 1
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `org.apache.helix.zookeeper.datamodel.ZNRecord` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (1)
 at [Source: (ByteArrayInputStream); line: 1, column: 1]
        at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63) ~[jackson-databind-2.12.6.1.jar:2.12.6.1] 
        at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1588) ~[jackson-databind-2.12.6.1.jar:2.12.6.1]
@  

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":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. 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)

@desaikomal
Copy link
Contributor Author

Thanks @junkaixue for your review.
This change is ready to be merged.
Commit message: Follow up change to NPE in intermediate stage, we should not skip message throttling in case of missing partition's preference list.

@xyuanlu xyuanlu merged commit 7da0ddb into apache:master Oct 20, 2023
1 of 2 checks passed
zpinto pushed a commit to zpinto/helix that referenced this pull request Nov 8, 2023
Follow up change to NPE in intermediate stage, we should not skip message throttling in case of missing partition's preference list.
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.

3 participants