in mode/cluster/repository/consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/lock/ConsulDistributedLock.java [155:165]
public void unlock() {
String sessionId = lockSessionId.get();
PutParams putParams = new PutParams();
putParams.setReleaseSession(sessionId);
try {
client.setKVValue(lockPath, UNLOCK_VALUE, putParams);
client.sessionDestroy(sessionId, null);
} finally {
lockSessionId.remove();
}
}