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

The result from the postAppend is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha-1
    • 1.4.0, 2.0.0-alpha-2, 2.0.0
    • Coprocessors
    • None
    • Incompatible change, Reviewed

    Description

      RegionCoprocessorHost.java
        /**
         * @param append Append object
         * @param result the result returned by the append
         * @throws IOException if an error occurred on the coprocessor
         */
        public void postAppend(final Append append, final Result result) throws IOException {
          execOperation(coprocessors.isEmpty() ? null : new RegionOperation() {
            @Override
            public void call(RegionObserver oserver, ObserverContext<RegionCoprocessorEnvironment> ctx)
                throws IOException {
              oserver.postAppend(ctx, append, result);
            }
          });
        }
      
        /**
         * @param increment increment object
         * @param result the result returned by postIncrement
         * @throws IOException if an error occurred on the coprocessor
         */
        public Result postIncrement(final Increment increment, Result result) throws IOException {
          return execOperationWithResult(result,
              coprocessors.isEmpty() ? null : new RegionOperationWithResult<Result>() {
            @Override
            public void call(RegionObserver oserver, ObserverContext<RegionCoprocessorEnvironment> ctx)
                throws IOException {
              setResult(oserver.postIncrement(ctx, increment, getResult()));
            }
          });
        }
      

      Attachments

        1. HBASE-18267.branch-1.2.v0.patch
          7 kB
          Chia-Ping Tsai
        2. HBASE-18267.branch-1.3.v0.patch
          7 kB
          Chia-Ping Tsai
        3. HBASE-18267.branch-1.v0.patch
          7 kB
          Chia-Ping Tsai
        4. HBASE-18267.v0.patch
          7 kB
          Chia-Ping Tsai
        5. HBASE-18267.v1.patch
          7 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: