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

NPE in AddPeerProcedure recovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.0.0-alpha-1
    • 3.0.0-beta-1
    • Replication
    • None
    • Reviewed

    Description

      AddPeerProcedure will restore syncReplicationPeerLock when replayed in master recovery, however the replicationPeerManager has not been initialized when replay procedure, which will cause a nullPointerException and master to abort.

      @Override
      protected void afterReplay(MasterProcedureEnv env) {
        // ......
        if (peerConfig.isSyncReplication()) {
          if (!env.getReplicationPeerManager().tryAcquireSyncReplicationPeerLock()) {
            throw new IllegalStateException(
              "Can not acquire sync replication peer lock for peer " + peerId);
          }
        }
      }  

      Attachments

        Issue Links

          Activity

            People

              frostruan ruanhui
              frostruan ruanhui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: