Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/9605#discussion_r44478866
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/util/WriteAheadLogSuite.scala
---
@@ -406,16 +386,19 @@ class BatchedWriteAheadLogSuite extends
CommonWriteAheadLogTests(
// The queue.take() immediately takes the 3, and there is nothing left
in the queue at that
// moment. Then the promise blocks the writing of 3. The rest get
queued.
- promiseWriteEvent(batchedWal, event1, 3L)
+ writeAsync(batchedWal, event1, 3L)
+ eventually(timeout(1 second)) {
+ assert(blockingWal.isBlocked)
--- End diff --
Can you also add checks that the batchedWALs internal queue lengths? Here
is should be 0, and in line 399 it will be 5.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]