Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8619

WritableComparator must implement no-arg constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 0.23.0
    • io
    • None
    • 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.

      Attachments

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

        Activity

          People

            cdouglas Christopher Douglas
            hsn Radim Kolar
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: