Repository: phoenix
Updated Branches:
  refs/heads/4.0 cdf9521c9 -> 796a0ce5c


PHOENIX-990 OOM caused by order by query returning all rows (PraveenMurugesan)


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

Branch: refs/heads/4.0
Commit: 796a0ce5c6f2b95984e9db70adbcb746143cf282
Parents: cdf9521
Author: Mujtaba <mujt...@apache.org>
Authored: Fri Jun 20 09:46:59 2014 -0700
Committer: Mujtaba <mujt...@apache.org>
Committed: Fri Jun 20 09:46:59 2014 -0700

----------------------------------------------------------------------
 .../org/apache/phoenix/iterate/MappedByteBufferSortedQueue.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/796a0ce5/phoenix-core/src/main/java/org/apache/phoenix/iterate/MappedByteBufferSortedQueue.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/iterate/MappedByteBufferSortedQueue.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/iterate/MappedByteBufferSortedQueue.java
index 1a225c6..cd31ff7 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/iterate/MappedByteBufferSortedQueue.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/iterate/MappedByteBufferSortedQueue.java
@@ -176,7 +176,8 @@ public class MappedByteBufferSortedQueue extends 
AbstractQueue<ResultEntry> {
     }
 
     private static class MappedByteBufferPriorityQueue {
-        private static final long DEFAULT_MAPPING_SIZE = 1024;
+       // at least create 128 KB MappedByteBuffers
+        private static final long DEFAULT_MAPPING_SIZE = 128 * 1024;
         
         private final int limit;
         private final int thresholdBytes;

Reply via email to