You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Aaron T. Myers (JIRA)" <ji...@apache.org> on 2013/10/02 23:57:43 UTC
[jira] [Created] (HDFS-5289) Race condition in
TestRetryCacheWithHA#testCreateSymlink causes spurious test failure
Aaron T. Myers created HDFS-5289:
------------------------------------
Summary: Race condition in TestRetryCacheWithHA#testCreateSymlink causes spurious test failure
Key: HDFS-5289
URL: https://issues.apache.org/jira/browse/HDFS-5289
Project: Hadoop HDFS
Issue Type: Bug
Components: test
Affects Versions: 2.1.1-beta
Reporter: Aaron T. Myers
Assignee: Aaron T. Myers
The code to check if the operation has been completed on the active NN can potentially execute before the thread actually doing the operation has run. In this case the checking code will retry the check if the result of the check is null. However, the test operation does not in fact return null, instead throwing an exception if the file doesn't exist yet. We need to catch the exception and retry.
--
This message was sent by Atlassian JIRA
(v6.1#6144)