-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase task result limit #925
Conversation
@@ -52,7 +52,8 @@ | |||
|
|||
private static final Logger LOG = Log.logger(HugeTask.class); | |||
|
|||
private static final int MAX_PROPERTY_LENGTH = BytesBuffer.STRING_LEN_MAX; | |||
// The max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improve comment
chars[i] = '8'; | ||
} | ||
String bigInput = new String(chars); | ||
int length = 65536 * 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add test 128kb is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
128kb < 64MB, will not trigger exception
d1e8fb8
to
92dcab6
Compare
Codecov Report
@@ Coverage Diff @@
## master #925 +/- ##
============================================
- Coverage 71.89% 70.90% -0.99%
+ Complexity 4596 4553 -43
============================================
Files 295 295
Lines 21943 21974 +31
Branches 3097 3101 +4
============================================
- Hits 15775 15580 -195
- Misses 4619 4845 +226
Partials 1549 1549 Continue to review full report at Codecov.
|
f7e646e
to
96b91fd
Compare
@@ -51,6 +51,7 @@ | |||
public static final int CHAR_LEN = Character.BYTES; | |||
public static final int FLOAT_LEN = Float.BYTES; | |||
public static final int DOUBLE_LEN = Double.BYTES; | |||
public static final int BLOB_LEN = SHORT_LEN * 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set BLOB_LEN 4 bytes is ok
|
||
public class HugeTask<V> extends FutureTask<V> { | ||
|
||
private static final Logger LOG = Log.logger(HugeTask.class); | ||
|
||
private static final int MAX_PROPERTY_LENGTH = BytesBuffer.STRING_LEN_MAX; | ||
// The vertex property max length, for task input and result | ||
private static final int MAX_PROPERTY_LENGTH = (int) (64 * Bytes.MB); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read from BLOB_LEN_MAX
hugegraph-core/src/main/java/com/baidu/hugegraph/task/HugeTask.java
Outdated
Show resolved
Hide resolved
@@ -510,6 +551,12 @@ public void removeVertex(HugeVertex vertex) { | |||
} | |||
|
|||
public Iterator<Vertex> queryAdjacentVertices(Iterator<Edge> edges) { | |||
if(this.lazyLoadAdjacentVertex){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty after 'if'
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/tx/AbstractTransaction.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/core/TaskCoreTest.java
Outdated
Show resolved
Hide resolved
Change-Id: Ib2c4bdf25e4604d8bea47802e724c0f0934170fb
Change-Id: Ic5d49fe80e70affbe2882a56c78ca2a03bc27ca8
Change-Id: Iaaf3c8bafe0fa52d7c16d67f45fd0b2cf5611de3
34d224f
to
e6d04c9
Compare
hugegraph-core/src/main/java/com/baidu/hugegraph/config/CoreOptions.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/config/CoreOptions.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/task/HugeTask.java
Outdated
Show resolved
Hide resolved
Change-Id: I08a3a41900492f95fa161f80d4c9a18d85ac4f64
|
Change-Id: I2f88344f09fc7d53f36f51ff5af5e1baa5d36ba0
8b76304
to
22d36db
Compare
Change-Id: Ib2c4bdf25e4604d8bea47802e724c0f0934170fb