Uploaded image for project: 'MRUnit'
  1. MRUnit
  2. MRUNIT-70

copy(orig, conf) in Serialization shouldn't require objects to have a no-args constructor, and copy(orig, copy, conf) seems to violate contract for deserializer.deserialize()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.8.0
    • 0.9.0
    • None

    Description

      The copy(orig, conf) method requires objects to have a no-args constructor, which is non-ideal, since it passes on to Deserializer.deserialize, which can create a new object if passed in null. Additionally, the contract for deserialize only can fill in the object passed in, so the copy method will not perform as expected if it does not.

      http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/io/serializer/Deserializer.html#deserialize%28T%29

      Attachments

        1. MRUNIT-70-1.patch
          4 kB
          Jim Donofrio

        Activity

          People

            jdonofrio Jim Donofrio
            meloss2k Meloss Xeloss
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: