Instead of asserting the objects directly, assert the objects' content as the objects might be different, but their content would be the same.
Please let me know if you have any questions or need any additional justification/changes from my side.
This PR has:
[ ] been self-reviewed.
[ ] concurrent read
[ ] concurrent write
[ ] concurrent read and write
[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods.
[ ] added or updated version, license, or notice information
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious
for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold
for code coverage.
[ ] added integration tests.
[ ] been tested in a test IoTDB cluster.
Key changed/added classes (or packages if there are too many classes) in this PR
Description
The test ChunkCacheTest#testChunkCache fails under NonDex tool which detects non-deterministic nature of tests.
How to Reproduce
Error
java.lang.AssertionError: expected: org.apache.tsfile.file.header.ChunkHeader<CHUNK_HEADER{measurementID='null', dataSize=189, dataType=DOUBLE, compressionType=UNCOMPRESSED, encodingType=PLAIN, numOfPages=0, serializedSize=14}> but was: org.apache.tsfile.file.header.ChunkHeader<CHUNK_HEADER{measurementID='null', dataSize=189, dataType=DOUBLE, compressionType=UNCOMPRESSED, encodingType=PLAIN, numOfPages=0, serializedSize=14}>
Proposed Solution
Instead of asserting the objects directly, assert the objects' content as the objects might be different, but their content would be the same. Please let me know if you have any questions or need any additional justification/changes from my side.
This PR has:
Key changed/added classes (or packages if there are too many classes) in this PR