ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject ignite git commit: IGNITE-5410: Fixed assertion in HadoopDataOutStream. This closes #2084.
Date Tue, 06 Jun 2017 13:56:16 GMT
Repository: ignite
Updated Branches:
  refs/heads/master f3c6b3c5a -> ec5c3a2de


IGNITE-5410: Fixed assertion in HadoopDataOutStream. This closes #2084.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ec5c3a2d
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ec5c3a2d
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ec5c3a2d

Branch: refs/heads/master
Commit: ec5c3a2de426ccdea619548821472291e900f28d
Parents: f3c6b3c
Author: Ivan Veselovskiy <iveselovskiy@gridgain.com>
Authored: Tue Jun 6 16:56:09 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Tue Jun 6 16:56:09 2017 +0300

----------------------------------------------------------------------
 .../processors/hadoop/shuffle/streams/HadoopOffheapBuffer.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ec5c3a2d/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/shuffle/streams/HadoopOffheapBuffer.java
----------------------------------------------------------------------
diff --git a/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/shuffle/streams/HadoopOffheapBuffer.java
b/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/shuffle/streams/HadoopOffheapBuffer.java
index d15e7eb..ed6feae 100644
--- a/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/shuffle/streams/HadoopOffheapBuffer.java
+++ b/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/shuffle/streams/HadoopOffheapBuffer.java
@@ -92,7 +92,7 @@ public class HadoopOffheapBuffer {
      * @return Old position pointer or {@code 0} if move goes beyond the end of the buffer.
      */
     public long move(long size) {
-        assert size > 0 : size;
+        assert size >= 0 : size;
 
         long oldPos = posPtr;
         long newPos = oldPos + size;


Mime
View raw message