[
https://issues.apache.org/jira/browse/HADOOP-8228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated HADOOP-8228:
--------------------------------
Attachment: hadoop-8228.txt
New rev includes code which covers the retry-on-disconnect mechanisms in the
elector, as well as many of the error handling paths. While running a stress
test, it has the ZK server disconnect all of its clients every 50ms. This
causes outstanding ZK calls to get a {{Disconnected}} error and have to handle
it.
I verified with Clover that this covers the retry code paths and various
failure cases while writing/reading the breadcrumb node, etc.
> Auto HA: Refactor tests and add stress tests
> --------------------------------------------
>
> Key: HADOOP-8228
> URL: https://issues.apache.org/jira/browse/HADOOP-8228
> Project: Hadoop Common
> Issue Type: Test
> Components: auto-failover, ha, test
> Affects Versions: Auto Failover (HDFS-3042)
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Attachments: hadoop-8228.txt, hadoop-8228.txt
>
>
> It's important that the ZKFailoverController be robust and not contain race
> conditions, etc. One strategy to find potential races is to add stress tests
> which exercise the code as fast as possible. This JIRA is to implement some
> test cases of this style.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira