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

Race in MasterRpcServices.getProcedureResult

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • proc-v2
    • None
    • Reviewed

    Description

      In ProcedureExecutor, we only consider a procedure to be finished when it is removed from the procedures map. But in MasterRpcServices.getProcedureResult, we will use the state of the procedure to determine whether it is finished. If setFailure is called, the procedure may enter the FAILED state which indicates it is finished before being removed from the procedure map, and then causes an assertion when we calling ProcedureExecutor.removeResult in MasterRpcServices.getProcedureResult.

      Attachments

        1. HBASE-19608.patch
          4 kB
          Duo Zhang
        2. HBASE-19608-v1.patch
          4 kB
          Duo Zhang
        3. HBASE-19608-v2.patch
          4 kB
          Duo Zhang

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: