Index: oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java (revision 9a1247d991d32c2cb49831f70d7421d82346b95d) +++ oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/BackgroundObserver.java (revision ) @@ -113,9 +113,9 @@ public Void call() throws Exception { try { ContentChange change = queue.poll(); - while (change != null && change != STOP) { + if (change != null && change != STOP) { observer.contentChanged(change.root, change.info); - change = queue.poll(); + currentTask.onComplete(completionHandler); } } catch (Throwable t) { exceptionHandler.uncaughtException(Thread.currentThread(), t);