From common-issues-return-167207-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Sat Mar 9 16:36:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3A37518062C for ; Sat, 9 Mar 2019 17:36:05 +0100 (CET) Received: (qmail 42860 invoked by uid 500); 9 Mar 2019 16:36:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 42849 invoked by uid 99); 9 Mar 2019 16:36:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Mar 2019 16:36:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D26A3C21B6 for ; Sat, 9 Mar 2019 16:36:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id OYTmaz2AOWBs for ; Sat, 9 Mar 2019 16:36:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6A2355F4D3 for ; Sat, 9 Mar 2019 16:36:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6AC1EE031B for ; Sat, 9 Mar 2019 16:36:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 223E2257F7 for ; Sat, 9 Mar 2019 16:36:00 +0000 (UTC) Date: Sat, 9 Mar 2019 16:36:00 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-16109) Parquet reading S3AFileSystem causes EOF MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-16109?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 788739#comment-16788739 ]=20 Hudson commented on HADOOP-16109: --------------------------------- FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #16166 (See [https= ://builds.apache.org/job/Hadoop-trunk-Commit/16166/]) HADOOP-16109. Parquet reading S3AFileSystem causes EOF (stevel: rev 0cbe9ad= 8c23d3fd2ac8ac423b6d2df68de720981) * (edit) hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/contrac= t/s3a/ITestS3AContractSeek.java * (edit) hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3A= InputStream.java * (edit) hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoo= p/fs/contract/AbstractContractSeekTest.java > Parquet reading S3AFileSystem causes EOF > ---------------------------------------- > > Key: HADOOP-16109 > URL: https://issues.apache.org/jira/browse/HADOOP-16109 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 2.9.2, 2.8.5, 3.3.0, 3.1.2 > Reporter: Dave Christianson > Assignee: Steve Loughran > Priority: Blocker > Fix For: 3.3.0 > > > When using=C2=A0S3AFileSystem to read Parquet files a specific set of cir= cumstances causes an=C2=A0 EOFException that is not thrown when reading the= same file from local disk > Note this has only been observed under specific circumstances: > =C2=A0 - when the reader is doing a projection (will cause it to do a see= k backwards and put the filesystem into random mode) > =C2=A0- when the file is larger than the readahead buffer size > =C2=A0-=C2=A0when the seek behavior of the Parquet reader causes the read= er to seek towards the end of the current input stream without reopening, s= uch that the next read on the currently open stream will read past the end = of the currently open stream. > Exception from Parquet reader is as follows: > {code} > Caused by: java.io.EOFException: Reached the end of stream with 51 bytes = left to read > at org.apache.parquet.io.DelegatingSeekableInputStream.readFully(Delegat= ingSeekableInputStream.java:104) > at org.apache.parquet.io.DelegatingSeekableInputStream.readFullyHeapBuff= er(DelegatingSeekableInputStream.java:127) > at org.apache.parquet.io.DelegatingSeekableInputStream.readFully(Delegat= ingSeekableInputStream.java:91) > at org.apache.parquet.hadoop.ParquetFileReader$ConsecutiveChunkList.read= All(ParquetFileReader.java:1174) > at org.apache.parquet.hadoop.ParquetFileReader.readNextRowGroup(ParquetF= ileReader.java:805) > at org.apache.parquet.hadoop.InternalParquetRecordReader.checkRead(Inter= nalParquetRecordReader.java:127) > at org.apache.parquet.hadoop.InternalParquetRecordReader.nextKeyValue(In= ternalParquetRecordReader.java:222) > at org.apache.parquet.hadoop.ParquetRecordReader.nextKeyValue(ParquetRec= ordReader.java:207) > at org.apache.flink.api.java.hadoop.mapreduce.HadoopInputFormatBase.fetc= hNext(HadoopInputFormatBase.java:206) > at org.apache.flink.api.java.hadoop.mapreduce.HadoopInputFormatBase.reac= hedEnd(HadoopInputFormatBase.java:199) > at org.apache.flink.runtime.operators.DataSourceTask.invoke(DataSourceTa= sk.java:190) > at org.apache.flink.runtime.taskmanager.Task.run(Task.java:711) > at java.lang.Thread.run(Thread.java:748) > {code} > The following example program generate the same root behavior (sans findi= ng a Parquet file that happens to trigger this condition) by purposely read= ing past the already active readahead range on any file >=3D 1029 bytes in = size..=C2=A0 > {code:java} > final Configuration conf =3D new Configuration(); > conf.set("fs.s3a.readahead.range", "1K"); > conf.set("fs.s3a.experimental.input.fadvise", "random"); > final FileSystem fs =3D FileSystem.get(path.toUri(), conf); > // forward seek reading across readahead boundary > try (FSDataInputStream in =3D fs.open(path)) { > final byte[] temp =3D new byte[5]; > in.readByte(); > in.readFully(1023, temp); // <-- works > } > // forward seek reading from end of readahead boundary > try (FSDataInputStream in =3D fs.open(path)) { > final byte[] temp =3D new byte[5]; > in.readByte(); > in.readFully(1024, temp); // <-- throws EOFException > } > {code} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org