Skip to content

Commit

Permalink
Bug 37487846 - [37396358->25.03] RFA: The cluster has completely froz…
Browse files Browse the repository at this point in the history
…e while taking the snapshot

[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 113791]
  • Loading branch information
mgamanho committed Jan 27, 2025
1 parent 705b2f3 commit 52edbfd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27752,15 +27752,16 @@ protected boolean lock(int iPart)
long cMillis = service.getDistributionContendMillis();
boolean fLocked = ctrlPart != null && // a once owned partition may no longer be owned
ctrlPart.lock(cMillis, PartitionedService.PartitionControl.LOCK_PERSISTENCE_SNAPSHOT);

AtomicInteger atomicTasks = ctrlPart.getPersistenceTasks();
if (fLocked && atomicTasks.get() > 0)
{
try
{
synchronized (atomicTasks)
{
Blocking.wait(atomicTasks, cMillis);
// prevent indefinite wait on service thread
Blocking.wait(atomicTasks, cMillis == 0 ? 100L : cMillis);
}
}
catch (InterruptedException e)
Expand Down

0 comments on commit 52edbfd

Please sign in to comment.