Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix streaming flaky tests
  • Loading branch information
Davies Liu committed May 18, 2015
commit 7947db69cda1e1de1de6297f6553bc6de19f8c67
6 changes: 3 additions & 3 deletions python/pyspark/streaming/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

class PySparkStreamingTestCase(unittest.TestCase):

timeout = 4 # seconds
duration = .2
timeout = 10 # seconds
duration = .5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the duration? Batch duration? Why increase this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's batch duration. These tests became flaky when we change the duration from 1 to 0.2, I'd like to try to change it to 0.5. If they are still flaky, then move to 1 second.


@classmethod
def setUpClass(cls):
Expand Down Expand Up @@ -379,7 +379,7 @@ def func(dstream):

class WindowFunctionTests(PySparkStreamingTestCase):

timeout = 5
timeout = 15

def test_window(self):
input = [range(1), range(2), range(3), range(4), range(5)]
Expand Down