[
https://issues.apache.org/jira/browse/HDFS-13330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16414064#comment-16414064
]
Rushabh S Shah edited comment on HDFS-13330 at 3/26/18 4:13 PM:
----------------------------------------------------------------
Instead of fixing this jira, I am more inclined to revert HDFS-8979 which
already broke 2 other functionalities.
I have left a comment there. Will appreciate if someone can chime in there.
Thanks [~chris.douglas] for pointing out the root cause.
was (Author: shahrs87):
Instead of fixing this jira, I am more inclined to revert HDFS-8979 which
already broke 3 other functionalities.
I have left a comment there. Will appreciate if someone can chime in there.
Thanks [~chris.douglas] for pointing out the root cause.
> Clean up dead code
> ------------------
>
> Key: HDFS-13330
> URL: https://issues.apache.org/jira/browse/HDFS-13330
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Wei-Chiu Chuang
> Assignee: Gabor Bota
> Priority: Trivial
> Labels: newbie
> Attachments: HDFS-13330.001.patch
>
>
> The follow do .. while(false) loop seems useless to me.
> {code:java}
> ShortCircuitReplicaInfo info = null;
> do {
> if (closed) {
> LOG.trace("{}: can't fethchOrCreate {} because the cache is closed.",
> this, key);
> return null;
> }
> Waitable<ShortCircuitReplicaInfo> waitable = replicaInfoMap.get(key);
> if (waitable != null) {
> try {
> info = fetch(key, waitable);
> } catch (RetriableException e) {
> LOG.debug("{}: retrying {}", this, e.getMessage());
> }
> }
> } while (false);{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]