Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
1.11.3
-
None
-
None
Description
After we upgraded Avro library and avro-maven-plugin from version 1.11.1 to 1.11.3 and
we started to get the error "cannot read collections larger than 2147483639 items in java library".
This error is generated by SystemLimitException.checkMaxCollectionLength.
The data that we are trying to deserialize (using avro 1.11.3) was serealized using avro 1.11.1.
The object that we are trying to deserealize is:
{
"name": "statuses",
"type":
}
{
"name": "statuses",
"type": {
"type": "array",
"items": {
"name": "StatusAvro",
"type": "record",
"namespace": "com.entity.avro",
"fields": [
,
,
]
}
}
}
{
"name": "validFor",
"type": {
"name": "ValidForAvro",
"type": "record",
"namespace": "com.entity.avro",
"fields": [
,
]
}
}
This is an example of the objects listed above:
"statuses": [
{
"status": "INIT",
"reason": "Final_New_Reason",
"validFor":
}
]
The problem is that the array has only one item as shown above, so why is it throwing an error of the collection is too long?