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

      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-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

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development