[ https://issues.apache.org/jira/browse/HDFS-15099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013146#comment-17013146 ]
Chen Liang commented on HDFS-15099: ----------------------------------- Thanks for the great suggestions [~shv]! Post v002 patch. Only difference is that I removedĀ {code:java} + dfs.open(testPath).close(); + assertSentTo(2); {code} Because if my test, seems if machine is slow enough, the access time 200ms may already passed here, and this call went to active already, failing the assertion. I removed this check completely, as I think this is just to verify an open can go to observer, which is already being covered by other tests, should be no necessity to have it here. > [SBN Read] getBlockLocations() should throw ObserverRetryOnActiveException on > an attempt to change aTime on ObserverNode > ------------------------------------------------------------------------------------------------------------------------ > > Key: HDFS-15099 > URL: https://issues.apache.org/jira/browse/HDFS-15099 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.10.0 > Reporter: Konstantin Shvachko > Assignee: Chen Liang > Priority: Major > Attachments: HDFS-15099-branch-2.10.001.patch, > HDFS-15099-branch-2.10.002.patch > > > The precision of updating an INode's aTime while executing > {{getBlockLocations()}} is 1 hour by default. Updates cannot be handled by > ObserverNode, so the call should be redirected to Active NameNode. In order > to redirect to active the ObserverNode should through > {{ObserverRetryOnActiveException}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org