Hadoop Common
  1. Hadoop Common
  2. HADOOP-8619

WritableComparator must implement no-arg constructor

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 0.23.0, 2.0.0-alpha, 3.0.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Because of reasons listed here: http://findbugs.sourceforge.net/bugDescriptions.html#SE_COMPARATOR_SHOULD_BE_SERIALIZABLE

      comparators should be serializable. To make deserialization work, it is required that all superclasses have no-arg constructor. http://findbugs.sourceforge.net/bugDescriptions.html#SE_NO_SUITABLE_CONSTRUCTOR

      Simply add no=arg constructor to WritableComparator.

      1. 8619-0.patch
        4 kB
        Chris Douglas
      2. writable-comparator.txt
        0.9 kB
        Radim Kolar

        Activity

          People

          • Assignee:
            Chris Douglas
            Reporter:
            Radim Kolar
          • Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development