apache/spark — pull request #3661 by zsxwing (2014-12-10 08:49:16+00:00)
Title: [SPARK-4813][Streaming] Fix the issue that ContextWaiter didn't handle 'spurious wakeup'

Used `Condition` to rewrite `ContextWaiter` because it provides a convenient API `awaitNanos` for timeout.