flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jian Cao <caojian0...@gmail.com>
Subject Data overflow in SpillingResettableMutableObjectIterator
Date Thu, 09 Jan 2020 08:10:38 GMT
Hi all:
We are using flink's iteration´╝îand find the
SpillingResettableMutableObjectIterator has a data overflow problem if
the number of elements in a single input exceeds Integer.MAX_VALUE.

The reason is inside the SpillingResettableMutableObjectIterator, it
track the total number of elements and the number of elements
currently read with two int type fileds (elementCount and
currentElementNum), and if the number of elements exceeds
Integer.MAX_VALUE, it will overflow.

If there is an overflow, then in the next iteration, after reset the
input , the data will not be read or only part of the data will be

Therefore, I suggest changing the type of these two fields of
from int to long.

Best regards.

View raw message