Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/5559#discussion_r28641435
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/ReceiverSuite.scala ---
@@ -176,7 +176,7 @@ class ReceiverSuite extends TestSuiteBase with Timeouts
with Serializable {
blockGenerator.addData(count)
generatedData += count
count += 1
- Thread.sleep(1)
+ Thread.`yield`()
--- End diff --
Unless I'm about to learn some crazy new syntax, this won't compile.
`Thread.yield()`? but if the point is that this loop needs to happen "really
fast" then just remove it? I get that this will flood the block generator much
much more rapidly, but that might have already been happening with `yield()`.
In any event, if you just want to wait less than a millisecond, you can call
`Thread.sleep(0, [# nanoseconds])`.
---
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]