Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9142

Mutation#getFamilyMap() return type change between HBase 94 and 96 breaks downstream apps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.95.2
    • None
    • None
    • Reviewed
    • Hide
      HBASE-9142 Mutation#getFamilyMap() return type change between HBase 94 and 96 breaks downstream apps

      For 0.95/0.96, we need to preserve the getFamilyMap signature through a deprecation cycle. The new
      method needs to be present alongside the old in 0.95, so we rename the method with the new signature
      to getFamilyCellMap() in both trunk and 0.95, and restore a deprecated version of the old in 0.95.
      Show
      HBASE-9142 Mutation#getFamilyMap() return type change between HBase 94 and 96 breaks downstream apps For 0.95/0.96, we need to preserve the getFamilyMap signature through a deprecation cycle. The new method needs to be present alongside the old in 0.95, so we rename the method with the new signature to getFamilyCellMap() in both trunk and 0.95, and restore a deprecated version of the old in 0.95.

    Description

      In Hbase-94, Mutation#getFamilyMap() had signature:
      public Map<byte[],List<KeyValue>> getFamilyMap()

      In Hbase-96 it is:
      public NavigableMap<byte[],List<? extends Cell>> getFamilyMap()

      I understand this might not be an easy fix or even a possible one - but it breaks downstream apps in a nasty way. If the app needs to process the individual columns, then the whole logic is now different. Is there a way to work around this, if this cannot be fixed?

      Attachments

        1. hbase-9142-trunk.v2.patch
          27 kB
          Jonathan Hsieh
        2. hbase-9142-trunk.patch
          27 kB
          Jonathan Hsieh
        3. hbase-9142-95.v2.patch
          27 kB
          Jonathan Hsieh
        4. hbase-9142-0.95.patch
          27 kB
          Jonathan Hsieh

        Activity

          People

            jmhsieh Jonathan Hsieh
            hshreedharan Hari Shreedharan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: