Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3630618116 for ; Fri, 3 Jul 2015 13:04:05 +0000 (UTC) Received: (qmail 14669 invoked by uid 500); 3 Jul 2015 13:04:05 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 14601 invoked by uid 500); 3 Jul 2015 13:04:05 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 14586 invoked by uid 99); 3 Jul 2015 13:04:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2015 13:04:04 +0000 Date: Fri, 3 Jul 2015 13:04:04 +0000 (UTC) From: "Tom White (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1679) DataFileReader.SeekableInputStream.skip seeking rather than skipping MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613176#comment-14613176 ] Tom White commented on AVRO-1679: --------------------------------- Thanks for the patch Erik. This needs a unit test that fails when the fix is not present, and passes with the fix applied. > DataFileReader.SeekableInputStream.skip seeking rather than skipping > -------------------------------------------------------------------- > > Key: AVRO-1679 > URL: https://issues.apache.org/jira/browse/AVRO-1679 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.7.7 > Reporter: Erik Krogen > Priority: Minor > Attachments: AVRO-1679.patch > > > Within DataFileReader.SeekableInputStream, the skip method acts as a seek rather than a skip (seeking to the offset which is passed in rather than skipping ahead by that offset). It passes the value through to the underlying SeekableInput's seek method without first adding the current position within the input. -- This message was sent by Atlassian JIRA (v6.3.4#6332)