fix: enabled redis key events
Type of change
-
Bug Fix -
Feature -
Pipeline -
Test -
Documentation
Does this introduce a change in the core logic?
-
No -
Yes
Does this introduce a change in the cloud provider implementation, if so which cloud?
-
AWS -
Anthos -
Azure -
GCP -
IBM
conventional commits spec?
Does this follow-
No -
Yes
Have you set the target Milestone?
-
No -
Yes
Have you set the no-detached-pipeline label?
-
No -
Yes
Updates description?
The Locker cache was not listening to key events (especially the expired one). This was causing issue on releasing the read locker
Problem:
127.0.0.1:6379> KEYS *
- "opendes/sandboxxx/dsx01/RdcDgMaPX08dPbT1"
- "opendes/sandboxxx/dsx01/RqGY7ht9PinyxfIu"
- "opendes/sandboxxx/dsx01" 127.0.0.1:6379> GET "opendes/sandboxxx/dsx01" "rms:RdcDgMaPX08dPbT1:RqGY7ht9PinyxfIu"
127.0.0.1:6379> KEYS *
- "opendes/sandboxxx/dsx01/RqGY7ht9PinyxfIu"
- "opendes/sandboxxx/dsx01" 127.0.0.1:6379> GET "opendes/sandboxxx/dsx01" "rms:RdcDgMaPX08dPbT1:RqGY7ht9PinyxfIu" // NOTE HERE THE MAIN READ LOCK DOES NOT REMOVE THE EXPIRED KEY RdcDgMaPX08dPbT1
127.0.0.1:6379> KEYS *
- "opendes/sandboxxx/dsx01" 127.0.0.1:6379> GET "opendes/sandboxxx/dsx01" "rms:RdcDgMaPX08dPbT1:RqGY7ht9PinyxfIu" // NOTE HERE THE MAIN READ LOCK DOES NOT REMOVE THE EXPIRED KEY RdcDgMaPX08dPbT1 && RqGY7ht9PinyxfIu
Resolution:
127.0.0.1:6379> KEYS *
- "opendes/sandboxxx/dsx01/REj0g09antgEfWUd"
- "opendes/sandboxxx/dsx01/RU3tdF9vQklORxOV"
- "opendes/sandboxxx/dsx01" 127.0.0.1:6379> GET opendes/sandboxxx/dsx01 "rms:REj0g09antgEfWUd:RU3tdF9vQklORxOV"
127.0.0.1:6379> KEYS *
- "opendes/sandboxxx/dsx01/RU3tdF9vQklORxOV"
- "opendes/sandboxxx/dsx01" 127.0.0.1:6379> GET opendes/sandboxxx/dsx01 "rms:RU3tdF9vQklORxOV" // NOTE THE EXPIRE REj0g09antgEfWUd LOCK HAS BEEN REMOVED FROM THE MAIN READ LOCK
127.0.0.1:6379> KEYS * (empty array) // ONCE ALL READ LOCKS EXPIRE THE MAIN READ LOCK GET REMOVED
Edited by Diego Molteni