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

SortedMapWritable#putAll() doesn't add key/value classes to the map

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 2.0.2-alpha
    • Fix Version/s: 1.2.0, 0.23.7, 2.1.0-beta
    • Component/s: io
    • Labels:
      None

      Description

      In the following code from SortedMapWritable, #putAll() doesn't add key/value classes to the class-id maps.

        @Override
        public Writable put(WritableComparable key, Writable value) {
          addToMap(key.getClass());
          addToMap(value.getClass());
          return instance.put(key, value);
        }
      
        @Override
        public void putAll(Map<? extends WritableComparable, ? extends Writable> t){
          for (Map.Entry<? extends WritableComparable, ? extends Writable> e:
            t.entrySet()) {
            
            instance.put(e.getKey(), e.getValue());
          }
        }
      

        Attachments

        1. hadoop-9154-draft.patch
          9 kB
          Karthik Kambatla
        2. hadoop-9154-draft.patch
          4 kB
          Karthik Kambatla
        3. hadoop-9154-branch1.patch
          2 kB
          Karthik Kambatla
        4. hadoop-9154.patch
          20 kB
          Karthik Kambatla
        5. hadoop-9154.patch
          28 kB
          Karthik Kambatla
        6. hadoop-9154.patch
          4 kB
          Karthik Kambatla
        7. hadoop-9154.patch
          3 kB
          Karthik Kambatla
        8. hadoop-9154.patch
          3 kB
          Karthik Kambatla
        9. HADOOP-9124.patch
          29 kB
          Surenkumar Nihalani

          Issue Links

            Activity

              People

              • Assignee:
                kasha Karthik Kambatla
                Reporter:
                kasha Karthik Kambatla
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: