Description
HADOOP-6881 modified WritableComparator.get such that the constructed WritableComparator gets saved back into the static map. This is fine for stateless comparators, but some comparators have per-instance state, and thus this becomes thread-unsafe and causes errors in the shuffle where multiple threads are doing comparisons. An example of a Comparator with per-instance state is WritableComparator itself.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-7219 Reuse WritableComparator instances using ThreadLocals
-
- Open
-