Details
-
Bug
-
Status: Resolved
-
P1
-
Resolution: Fixed
-
2.10.0
-
None
Description
- During calls to Combine.perKey, we want they keys used to have consistent hashCode when invoked from different JVM's.
- However, while testing this in our company we found out that when using protobuf as keys during combine, the hashCodes can be different for the same key when invoked from different JVMs. This results in duplicates.
- `ByteArray` class in Spark has a stable has code when dealing with arrays as well.
- GroupByKey correctly converts keys to `ByteArray` and uses coders for serialization.
- The fix does something similar when dealing with combines.
Attachments
Issue Links
- links to