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

Add provision for adding mutations to memstore or able to write to same region in batchMutate coprocessor hooks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • None

    Description

      As part of PHOENIX-1734 we need to write the index updates to same region from coprocessors but writing from batchMutate API is not allowed because of mvcc.

      Raised PHOENIX-2742 to discuss any alternative way to write to the same region directly or not but not having any proper solution there.

      Currently we have provision to write wal edits from coprocessors. We can set wal edits in MiniBatchOperationInProgress.

        /**
         * Sets the walEdit for the operation(Mutation) at the specified position.
         * @param index
         * @param walEdit
         */
        public void setWalEdit(int index, WALEdit walEdit) {
          this.walEditsFromCoprocessors[getAbsoluteIndex(index)] = walEdit;
        }
      

      Similarly we can allow to write mutations from coprocessors to memstore as well. Or else we should provide the batch mutation API allow write in batch mutate coprocessors.

      Attachments

        1. HBASE-15600_v1.patch
          9 kB
          Rajeshbabu Chintaguntla
        2. HBASE-15600_v2.patch
          10 kB
          Rajeshbabu Chintaguntla
        3. hbase-15600_v3.patch
          11 kB
          Enis Soztutar
        4. hbase-15600_v4.patch
          18 kB
          Enis Soztutar
        5. hbase-15600_v5.patch
          19 kB
          Enis Soztutar
        6. hbase-15600_v6.patch
          20 kB
          Enis Soztutar
        7. HBASE-15600.patch
          9 kB
          Rajeshbabu Chintaguntla

        Issue Links

          Activity

            People

              rajeshbabu Rajeshbabu Chintaguntla
              rajeshbabu Rajeshbabu Chintaguntla
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: