Skip to content

Commit

Permalink
Bug 37487843 - [37396358->14.1.2.0.2] RFA: The cluster has completely…
Browse files Browse the repository at this point in the history
… froze while taking the snapshot (14.1.2.0 cl 113794 --> ce/14.1.2.0)

[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.2.0/": change = 113827]
  • Loading branch information
fryp committed Jan 28, 2025
1 parent d7d92ee commit ccf751f
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 ccf751f

Please sign in to comment.