Skip to content

Conversation

@andrewor14
Copy link
Contributor

The existing test suite has a lot of duplicate code and doesn't even cover the most fundamental feature of the HeartbeatReceiver, which is expiring hosts that have not responded in a while.

This introduces manual clocks in HeartbeatReceiver and makes it respond to heartbeats only for registered executors. A few internal messages are moved to receiveAndReply to increase determinism of the tests so we don't have to rely on flaky constructs like eventually.

Now it covers expiring dead hosts and has much less duplicate code.
@andrewor14
Copy link
Contributor Author

The first version of this test is added in #6310. This patch will be useful for testing #7107, which fixes a different issue in YARN.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented Jul 2, 2015

Test build #36323 has started for PR 7173 at commit 4a903d6.

@SparkQA
Copy link

SparkQA commented Jul 2, 2015

Test build #36323 has finished for PR 7173 at commit 4a903d6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@andrewor14
Copy link
Contributor Author

Merging into master.

@asfgit asfgit closed this in cd20355 Jul 2, 2015
@andrewor14 andrewor14 deleted the heartbeat-receiver-tests branch July 2, 2015 21:10
asfgit pushed a commit that referenced this pull request Jul 14, 2015
As of #7173 we expect executors to properly register with the driver before responding to their heartbeats. This behavior is not matched in local mode. This patch adds the missing event that needs to be posted.

Author: Andrew Or <andrew@databricks.com>

Closes #7382 from andrewor14/fix-local-heartbeat and squashes the following commits:

1258bdf [Andrew Or] Post ExecutorAdded event to local executor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants