@ Override public void forceUnlock ( String lockName ) { Cache < Object , Integer > lockCache = getDistLockCache ( ) . getAdvancedCache ( ) . withFlags ( Flag . SKIP_CACHE_STORE , Flag . SKIP_CACHE_LOAD ) ; FileCacheKey fileCacheKey = new FileCacheKey ( indexName , lockName , affinitySegmentId ) ; Object previousValue = lockCache . remove ( fileCacheKey ) ; if ( previousValue != null && trace ) { log . tracef ( "Lock forcibly removed for index: %s" , indexName ) ; } }
Force release of the lock in this directory . Make sure to understand the consequences