Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BFBA114A2 for ; Wed, 16 Apr 2014 14:43:40 +0000 (UTC) Received: (qmail 67103 invoked by uid 500); 16 Apr 2014 14:43:24 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 67079 invoked by uid 99); 16 Apr 2014 14:43:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 14:43:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 14:43:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 224E92388860; Wed, 16 Apr 2014 14:42:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1587931 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/CHANGES.txt lucene/replicator/ lucene/replicator/src/java/org/apache/lucene/replicator/http/HttpClientBase.java Date: Wed, 16 Apr 2014 14:42:57 -0000 To: commits@lucene.apache.org From: shaie@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140416144257.224E92388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: shaie Date: Wed Apr 16 14:42:56 2014 New Revision: 1587931 URL: http://svn.apache.org/r1587931 Log: LUCENE-5599: HttpClientBase did not properly delegate to wrapped InputStream Modified: lucene/dev/branches/branch_4x/ (props changed) lucene/dev/branches/branch_4x/lucene/ (props changed) lucene/dev/branches/branch_4x/lucene/CHANGES.txt lucene/dev/branches/branch_4x/lucene/replicator/ (props changed) lucene/dev/branches/branch_4x/lucene/replicator/src/java/org/apache/lucene/replicator/http/HttpClientBase.java Modified: lucene/dev/branches/branch_4x/lucene/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/CHANGES.txt?rev=1587931&r1=1587930&r2=1587931&view=diff ============================================================================== --- lucene/dev/branches/branch_4x/lucene/CHANGES.txt (original) +++ lucene/dev/branches/branch_4x/lucene/CHANGES.txt Wed Apr 16 14:42:56 2014 @@ -15,6 +15,9 @@ Optimizations * LUCENE-5603: hunspell stemmer more efficiently strips prefixes and suffixes. (Robert Muir) + +* LUCENE-5599: HttpReplicator did not properly delegate bulk read() to wrapped + InputStream. (Christoph Kaser via Shai Erera) ======================= Lucene 4.8.0 ======================= Modified: lucene/dev/branches/branch_4x/lucene/replicator/src/java/org/apache/lucene/replicator/http/HttpClientBase.java URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/replicator/src/java/org/apache/lucene/replicator/http/HttpClientBase.java?rev=1587931&r1=1587930&r2=1587931&view=diff ============================================================================== --- lucene/dev/branches/branch_4x/lucene/replicator/src/java/org/apache/lucene/replicator/http/HttpClientBase.java (original) +++ lucene/dev/branches/branch_4x/lucene/replicator/src/java/org/apache/lucene/replicator/http/HttpClientBase.java Wed Apr 16 14:42:56 2014 @@ -221,13 +221,13 @@ public abstract class HttpClientBase imp } @Override public int read(byte[] b) throws IOException { - final int res = super.read(b); + final int res = in.read(b); consume(res); return res; } @Override public int read(byte[] b, int off, int len) throws IOException { - final int res = super.read(b, off, len); + final int res = in.read(b, off, len); consume(res); return res; }