From common-issues-return-167525-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Mar 13 16:08:46 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 4918D18064A for ; Wed, 13 Mar 2019 17:08:46 +0100 (CET) Received: (qmail 69291 invoked by uid 500); 13 Mar 2019 16:08:45 -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 69274 invoked by uid 99); 13 Mar 2019 16:08:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2019 16:08:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D2D60180AA9 for ; Wed, 13 Mar 2019 16:08:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, 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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id j-ScGxPgcqBv for ; Wed, 13 Mar 2019 16:08:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 666435F47D for ; Wed, 13 Mar 2019 15:59:02 +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 94C94E2965 for ; Wed, 13 Mar 2019 15:59:01 +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 01A32245A2 for ; Wed, 13 Mar 2019 15:59:01 +0000 (UTC) Date: Wed, 13 Mar 2019 15:59:01 +0000 (UTC) From: "Steve Loughran (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= 791836#comment-16791836 ]=20 Steve Loughran commented on HADOOP-16109: ----------------------------------------- branch-2 patch in & backported to 2.9 and eventually 2.8; seek tests rerun = each time. All happy. Closing as done.=20 trivia: this is be the first patch I get to submit patches for *everywhere*= . I am so happy. > 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: 2.10.0, 3.0.4, 3.3.0, 2.8.6, 3.2.1, 2.9.3, 3.1.3 > > Attachments: HADOOP-16109-branch-3.1-003.patch > > > 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