hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreina j <andrein...@huawei.com>
Subject Is implicit Retry for create() required on AlreadyBeingCreatedException in NonHA ?
Date Mon, 11 May 2015 11:05:11 GMT
Hi ,

In NonHA, If client tries to create the same file, which is already exists and open, then
NameNode was throwing already being created exception immediately. For NonHA case, Retry policy
was added to retry 5 times, each time after 60  sec(SOFT_LEASE_TIMEOUT).

However this retry was not working until <https://issues.apache.org/jira/browse/HDFS-6478>
 <https://issues.apache.org/jira/browse/HDFS-6478> HDFS-6478 fixed this.

This led to behavior change and call will retry upto 5 min, before failing.
Due to this downstream projects are facing issues. HBase reported it in HDFS-8270<https://issues.apache.org/jira/browse/HDFS-8270>.

Now my doubt is, Is retry of upto 5 mins (or a configurable retry time ) for AlreadyBeingCreatedException
is really necessary in NonHA case?
Whether waiting for a create operation failure is correct?

Note : In HA case , there is no retry on AlreadyBeingCreatedException.

Please provide your suggestion

Thanks in advance
Andreina J

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message