On Thu, May 07, 2015 at 08:35:22AM -0400, Mark H. Wood wrote:
> I think
2147483647 or 9223372036854775807 is much more likely as the
> limit.
The suffix is generated by a DBMS SEQUENCE object. In PostgreSQL,
handle_seq.max_value is the latter of the above. (2**63 - 1: the
limit of an SQL BIGINT, or java.lang.Long.MAX_VALUE.)
However, HandleManager.createHandle(Context, DSpaceObject) uses
TableRow.getIntColumn to retrieve it, and this will throw
IllegalArgumentException when the value exceeds the former of the
above (2**31 - 1: java.lang.Integer.MAX_VALUE).
We should fix that.