@Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
      .append("serverLocks", filterUnlocked(serverLocks))
      .append("namespaceLocks", filterUnlocked(namespaceLocks))
      .append("tableLocks", filterUnlocked(tableLocks))
      .append("regionLocks", filterUnlocked(regionLocks))
      .append("peerLocks", filterUnlocked(peerLocks))
      .append("metaLocks", filterUnlocked(ImmutableMap.of(TableName.META_TABLE_NAME, metaLock)))
      .append("globalLocks", filterUnlocked(globalLocks)).build();
  }
Removes all locks by clearing the maps. Used when procedure executor is stopped for failure and
recovery testing.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/SchemaLocking.java