Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In TransactionLog, we have
bufSize = Math.min(1024*1024, lastAddSize+(lastAddSize>>3)+256); MemOutputStream out = new MemOutputStream(new byte[bufSize]);
Note that bufSize will be a negative number if lastAddSize > 1908874127 ( which is around 1.9GB).
Although this seems to relate to user's error because of sending such a big document. But the exception is thrown for the update after the big one. Therefore it is better to fix the problem and solving how we can prohibit users from sending very big documents in other issues.