Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/677#discussion_r31641317
  
    --- Diff: 
core/src/main/java/brooklyn/entity/rebind/PeriodicDeltaChangeListener.java ---
    @@ -278,7 +278,9 @@ public void waitForPendingComplete(Duration timeout, 
boolean canTrigger) throws
                     while (writeCount.get() <= targetWriteCount) {
                         Duration left = timer.getDurationRemaining();
                         if (left.isPositive()) {
    -                        
writeCount.wait(left.lowerBound(Duration.millis(10)).toMilliseconds());
    +                        synchronized(writeCount) {
    +                            
writeCount.wait(left.lowerBound(Duration.millis(10)).toMilliseconds());
    --- End diff --
    
    wow, that was a bad bug to sneak in! Thanks for fixing!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to