This is an automated email from the ASF dual-hosted git repository.

jihoonson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d886e5  fix compress fail when file size is Integer.MAX_VALUE (#6159)
8d886e5 is described below

commit 8d886e59bfc878cfbbbcd23160a7dd7c44e5fe94
Author: kaijianding <[email protected]>
AuthorDate: Wed Aug 15 06:13:47 2018 +0800

    fix compress fail when file size is Integer.MAX_VALUE (#6159)
---
 java-util/src/main/java/io/druid/java/util/common/CompressionUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java-util/src/main/java/io/druid/java/util/common/CompressionUtils.java 
b/java-util/src/main/java/io/druid/java/util/common/CompressionUtils.java
index 9729dc4..2fc4a37 100644
--- a/java-util/src/main/java/io/druid/java/util/common/CompressionUtils.java
+++ b/java-util/src/main/java/io/druid/java/util/common/CompressionUtils.java
@@ -125,7 +125,7 @@ public class CompressionUtils
     long totalSize = 0;
     for (File file : directory.listFiles()) {
       log.info("Adding file[%s] with size[%,d].  Total size so far[%,d]", 
file, file.length(), totalSize);
-      if (file.length() >= Integer.MAX_VALUE) {
+      if (file.length() > Integer.MAX_VALUE) {
         zipOut.finish();
         throw new IOE("file[%s] too large [%,d]", file, file.length());
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to