Hadoop Common
  1. Hadoop Common
  2. HADOOP-9154

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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
    • Hadoop Flags:
      Reviewed

      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());
          }
        }
      
      1. HADOOP-9124.patch
        29 kB
        Surenkumar Nihalani
      2. hadoop-9154.patch
        3 kB
        Karthik Kambatla
      3. hadoop-9154.patch
        3 kB
        Karthik Kambatla
      4. hadoop-9154.patch
        4 kB
        Karthik Kambatla
      5. hadoop-9154.patch
        28 kB
        Karthik Kambatla
      6. hadoop-9154.patch
        20 kB
        Karthik Kambatla
      7. hadoop-9154-branch1.patch
        2 kB
        Karthik Kambatla
      8. hadoop-9154-draft.patch
        4 kB
        Karthik Kambatla
      9. hadoop-9154-draft.patch
        9 kB
        Karthik Kambatla

        Issue Links

          Activity

          Karthik Kambatla (Inactive) created issue -
          Karthik Kambatla (Inactive) made changes -
          Field Original Value New Value
          Summary SortedMap#putAll() doesn't add key/value classes to the map SortedMapWritable#putAll() doesn't add key/value classes to the map
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154-draft.patch [ 12562330 ]
          Karthik Kambatla (Inactive) made changes -
          Link This issue is related to HADOOP-9113 [ HADOOP-9113 ]
          Karthik Kambatla (Inactive) made changes -
          Link This issue is related to HADOOP-9113 [ HADOOP-9113 ]
          Karthik Kambatla (Inactive) made changes -
          Link This issue is related to HADOOP-9124 [ HADOOP-9124 ]
          Surenkumar Nihalani made changes -
          Attachment HADOOP-9124.patch [ 12562374 ]
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154.patch [ 12563497 ]
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154.patch [ 12563498 ]
          Karthik Kambatla (Inactive) made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154-draft.patch [ 12566432 ]
          Karthik Kambatla (Inactive) made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Karthik Kambatla (Inactive) made changes -
          Link This issue is blocked by HADOOP-9124 [ HADOOP-9124 ]
          Karthik Kambatla (Inactive) made changes -
          Link This issue is related to HADOOP-9124 [ HADOOP-9124 ]
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154.patch [ 12566831 ]
          Karthik Kambatla (Inactive) made changes -
          Affects Version/s 1.1.1 [ 12321658 ]
          Target Version/s 1.2.0, 2.0.3-alpha [ 12321659, 12323273 ]
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154.patch [ 12567610 ]
          Karthik Kambatla (Inactive) made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Karthik Kambatla (Inactive) made changes -
          Attachment hadoop-9154.patch [ 12568437 ]
          Attachment hadoop-9154-branch1.patch [ 12568438 ]
          Tom White made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 1.2.0 [ 12321659 ]
          Fix Version/s 2.0.4-beta [ 12324030 ]
          Resolution Fixed [ 1 ]
          Thomas Graves made changes -
          Fix Version/s 0.23.7 [ 12323956 ]
          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Assignee Karthik Kambatla [ kkambatl ] Karthik Kambatla [ kasha ]
          Gavin made changes -
          Reporter Karthik Kambatla [ kkambatl ] Karthik Kambatla [ kasha ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development