liyafan82 commented on a change in pull request #8194:
[FLINK-12216][Runtime]Respect the number of bytes from input parameters in
HybridMemorySegment
URL: https://github.com/apache/flink/pull/8194#discussion_r340957100
##########
File path:
flink-core/src/test/java/org/apache/flink/core/memory/MemorySegmentTestBase.java
##########
@@ -1955,11 +1955,6 @@ private void testByteBufferGet(boolean directBuffer) {
assertArrayEquals(bytes, result);
}
- @Test(expected = ReadOnlyBufferException.class)
- public void testHeapByteBufferGetReadOnly() {
Review comment:
Please note that the expected exception types are different for different
sub-classes. For HybridOnHeapMemorySegmentTest, the type is
IllegalArgumentException, and for HybridOffHeapMemorySegmentTest, the type is
ReadOnlyBufferException
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services