Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
1.0.0, 2.3.2
-
None
-
None
Description
When an InputStream is corrupted, the InputStream.skip can return -1, causing the while loop in NonSyncDataInputBuffer.skipBytes become infinite.
public final int skipBytes(int count) throws IOException { int skipped = 0; long skip; while (skipped < count && (skip = in.skip(count - skipped)) != 0) { skipped += skip; } if (skipped < 0) { throw new EOFException(); } return skipped; }
Similar bugs are Hadoop-8614, Yarn-2905, Yarn-163, Mapreduce-6990
Attachments
Issue Links
- Blocked
-
HIVE-18219 When InputStream is corrupted, the skip() returns -1, causing infinite loop
- Open