[ https://issues.apache.org/jira/browse/HDFS-10307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Li Bo updated HDFS-10307: ------------------------- Attachment: HDFS-10307-001.patch > Fix a bug in TestShortCircuitLocalRead > -------------------------------------- > > Key: HDFS-10307 > URL: https://issues.apache.org/jira/browse/HDFS-10307 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Li Bo > Assignee: Li Bo > Attachments: HDFS-10307-001.patch > > > Unit tests testLocalReadFallback ,testLocalReadLegacy, testSmallFileLocalRead > in TestShortCircuitLocalRead throws the following exception: > java.lang.IndexOutOfBoundsException: Requested more bytes than destination > buffer size > at > org.apache.hadoop.fs.FSInputStream.validatePositionedReadArgs(FSInputStream.java:107) > at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:975) > at java.io.DataInputStream.read(DataInputStream.java:149) > at > org.apache.hadoop.hdfs.shortcircuit.TestShortCircuitLocalRead.checkFileContent(TestShortCircuitLocalRead.java:157) > at > org.apache.hadoop.hdfs.shortcircuit.TestShortCircuitLocalRead.doTestShortCircuitReadImpl(TestShortCircuitLocalRead.java:286) > at > org.apache.hadoop.hdfs.shortcircuit.TestShortCircuitLocalRead.doTestShortCircuitReadLegacy(TestShortCircuitLocalRead.java:235) > at > org.apache.hadoop.hdfs.shortcircuit.TestShortCircuitLocalRead.testLocalReadFallback(TestShortCircuitLocalRead.java:327) -- This message was sent by Atlassian JIRA (v6.3.4#6332)