adoroszlai commented on PR #6652:
URL: https://github.com/apache/ozone/pull/6652#issuecomment-2493288492
Updated:
- merged master
- reduce change (from `master`) by keeping `long` return value
- updated `MockGatheringChannel` to simulate partial write
Test now reproduces the problem without the fix:
```
[ERROR] Tests run: 3, Failures: 2, Errors: 1, Skipped: 0, Time elapsed:
0.482 s <<< FAILURE! - in org.apache.hadoop.ozone.common.TestChunkBuffer
[ERROR] org.apache.hadoop.ozone.common.TestChunkBuffer.testImplWithList
Time elapsed: 0.135 s <<< ERROR!
IllegalArgumentException: all buffers after current one should have
position=0
...
at
com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
at
org.apache.hadoop.ozone.common.ChunkBufferImplWithByteBufferList.findCurrent(ChunkBufferImplWithByteBufferList.java:69)
at
org.apache.hadoop.ozone.common.ChunkBufferImplWithByteBufferList.writeTo(ChunkBufferImplWithByteBufferList.java:250)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.assertWrite(TestChunkBuffer.java:231)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.runTestImpl(TestChunkBuffer.java:169)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.runTestImplWithList(TestChunkBuffer.java:133)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.testImplWithList(TestChunkBuffer.java:105)
[ERROR]
org.apache.hadoop.ozone.common.TestChunkBuffer.testImplWithByteBuffer Time
elapsed: 0.13 s <<< FAILURE!
AssertionFailedError: array lengths differ, expected: <1024> but was: <1023>
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.assertWrite(TestChunkBuffer.java:232)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.runTestImpl(TestChunkBuffer.java:169)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.runTestImplWithByteBuffer(TestChunkBuffer.java:77)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.testImplWithByteBuffer(TestChunkBuffer.java:67)
[ERROR]
org.apache.hadoop.ozone.common.TestChunkBuffer.testIncrementalChunkBuffer Time
elapsed: 0.121 s <<< FAILURE!
AssertionFailedError: array lengths differ, expected: <8> but was: <6>
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.assertWrite(TestChunkBuffer.java:232)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.runTestImpl(TestChunkBuffer.java:169)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.runTestIncrementalChunkBuffer(TestChunkBuffer.java:98)
at
org.apache.hadoop.ozone.common.TestChunkBuffer.testIncrementalChunkBuffer(TestChunkBuffer.java:85)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]