[
https://issues.apache.org/jira/browse/PHOENIX-7885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tanuj Khurana updated PHOENIX-7885:
-----------------------------------
Description:
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.
was:
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.
> 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
> Priority: Major
>
> 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)