Fix failed tests in helix-rest#966
Merged
junkaixue merged 1 commit intoapache:masterfrom Apr 24, 2020
Merged
Conversation
junkaixue
approved these changes
Apr 23, 2020
Contributor
Author
|
This PR is ready to be merged, approved by @dasahcc |
huizhilu
added a commit
to huizhilu/helix
that referenced
this pull request
Aug 16, 2020
In tests: TestZkRoutingDataWriter and TestZkRoutingDataReader, the zkClient is trying to read/write ZNRecords, however, zkClient's serializer is not a ZNRecordSerializer but a BasicZkSerializer. So when read/write a ZNRecord, a ZkMarshallingError is thrown and causes the tests failed.
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
Fixes #965
Description
Here are some details about my PR, including screenshots of any UI changes:
In these tests, the zkClient is trying to read/write ZNRecords, but zkClient's serializer is not a
ZNRecordSerializerbut aBasicZkSerializer. So when read/write a ZNRecord, aZkMarshallingErroris thrown and causes the tests failed.Some developers don't see these failures, because the ordering of running tests are different on different environments (different maven version, OS). And the zkClient's is a based one and its serializer type is changed to ZNRecordSerializer in other tests. So if other tests are run before TestZkRoutingDataWriter, the tests pass. Otherwise, some developers would see the failures.
Change the zkClient to
_gZkClientTestNSwhich uses ZNRecordSerializerTests
Fix tests:
TestZkRoutingDataWriter
TestZkRoutingDataReader
The following is the result of the "mvn test" command on the appropriate module:
Commits
Documentation (Optional)
(Link the GitHub wiki you added)
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)