Concurrency Edge Cases: Thread Pool Saturation and Transaction-Lock Semantics

Scenario 1: Unpredictable Thread Pool Rejection in Batch Processing Developers often combine thread pools with coordination utilities like CountDownLatch to process data in chunks. On the surface, the implementation appears flawless. However, under specific conditions, this pattern can trigger intermittent RejectedExecutionException errors, baf ...

Posted on Sun, 16 Aug 2026 16:07:35 +0000 by tazz

Redis Distributed Lock Failures During Master-Slave Failover and Mitigation Strategies

Redis Lock Vulnearbility Analysis Asynchronous replication creates critical vulnerabilities during failover scenarios: Timeline: 1. Client A acquires lock on master (SET resource_id unique_val NX EX 30) 2. Lock replication to replica delayed (ms to hundreds of ms) 3. Master fails, sentinel triggers failover (3-10 seconds) 4. Replica becomes new ...

Posted on Mon, 25 May 2026 19:45:58 +0000 by 182x