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

throw the exception if memstore is incompetent to do the deep clone for cell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We must to clone the cell since the cell is backed by the reusable byte array. Also, we assume all cells passed to AbstractMemStore is of ExtendedCell. Not only is the type check unnecessary, but it also confuses the readers.

      AbstractMemStore.java
        private static Cell deepCopyIfNeeded(Cell cell) {
          if (cell instanceof ExtendedCell) {
            return ((ExtendedCell) cell).deepClone();
          }
          return cell;
        }
      

      Attachments

        Activity

          People

            stana Yung-An He
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: