[ https://issues.apache.org/jira/browse/HDFS-14082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16692596#comment-16692596 ]
Yiqun Lin commented on HDFS-14082: ---------------------------------- hI [~elgoiri], would you mind addressing my previous comments? I suppose you have missed that. {quote}I mean we make following change and not use specific number. // Test the behavior when everything is fine + FileSystem fs = getRouterFileSystem(); + FileStatus[] files = fs.listStatus(new Path("/")); int originalCount= files.length ,,,, // simplify the assertion logic assertNotEqual("...", originalCount , files.length); Catching one place I am missing before: fail("I should throw an exception"); Can we reword this to "listStatus call should throw an exception"? {quote} Others look good to me.. > RBF: Add option to fail operations when a subcluster is unavailable > ------------------------------------------------------------------- > > Key: HDFS-14082 > URL: https://issues.apache.org/jira/browse/HDFS-14082 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Íñigo Goiri > Assignee: Íñigo Goiri > Priority: Major > Attachments: HDFS-14082-HDFS-13891.002.patch, HDFS-14082.000.patch, > HDFS-14082.001.patch > > > When a subcluster is unavailable, we succeed operations like > {{getListing()}}. We should add an option to fail the operation if one of the > subclusters is unavailable. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org