Tanuj Khurana created PHOENIX-7885:
--------------------------------------
Summary: testReadAfterWrite and testReadAfterMultipleRotations
flake on async writer close
Key: PHOENIX-7885
URL: https://issues.apache.org/jira/browse/PHOENIX-7885
Project: Phoenix
Issue Type: Sub-task
Reporter: Tanuj Khurana
Assignee: Tanuj Khurana
Three tests in ReplicationLogGroupTest are flaky:
- testReadAfterWrite
- testReadAfterMultipleRotations
- testReadAfterMultipleRotationsWithVaryingBatchSizes
They fail intermittently with:
org.apache.phoenix.replication.log.InvalidLogTrailerException:
Unsupported version. Got major=5 minor=114, expected major=1 minor=0
at LogFileTrailer.readFixedFields(LogFileTrailer.java:126)
at
LogFileFormatReader.readAndValidateTrailer(LogFileFormatReader.java:86)
at LogFileReader.init(LogFileReader.java:49)
Root cause:
`checkAndReplaceWriter(asyncClose=false)` from `forceRotation()`
races with the SWAP event which calls `checkAndReplaceWriter(asyncClose=true)`
The tests explicitly close the log file so that subsequent reads don't fail.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)