[ https://issues.apache.org/jira/browse/HDFS-16525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
yanbin.zhang updated HDFS-16525: -------------------------------- Description: System.err should be used when error occurs in multiple methods in DFSAdmin class,as follows: {code:java} //DFSAdmin#refreshCallQueue ... try{ proxy.getProxy().refreshCallQueue(); System.out.println("Refresh call queue successful for " + proxy.getAddress()); }catch (IOException ioe){ System.out.println("Refresh call queue failed for " + proxy.getAddress()); exceptions.add(ioe); } ... {code} The test method closed first in TestDFSAdminWithHA also needs to be modified, otherwise an error will be reported: was: System.err should be used when error occurs in multiple methods in DFSAdmin class,as follows: {code:java} //DFSAdmin#refreshCallQueue ... try{ proxy.getProxy().refreshCallQueue(); System.out.println("Refresh call queue successful for " + proxy.getAddress()); }catch (IOException ioe){ System.out.println("Refresh call queue failed for " + proxy.getAddress()); exceptions.add(ioe); } ... {code} > System.err should be used when error occurs in multiple methods in DFSAdmin > class > --------------------------------------------------------------------------------- > > Key: HDFS-16525 > URL: https://issues.apache.org/jira/browse/HDFS-16525 > Project: Hadoop HDFS > Issue Type: Bug > Components: dfsadmin > Affects Versions: 3.3.2 > Reporter: yanbin.zhang > Assignee: yanbin.zhang > Priority: Major > > System.err should be used when error occurs in multiple methods in DFSAdmin > class,as follows: > {code:java} > //DFSAdmin#refreshCallQueue > ... > try{ > proxy.getProxy().refreshCallQueue(); > System.out.println("Refresh call queue successful for " > + proxy.getAddress()); > }catch (IOException ioe){ > System.out.println("Refresh call queue failed for " > + proxy.getAddress()); > exceptions.add(ioe); > } > ... > {code} > The test method closed first in TestDFSAdminWithHA also needs to be modified, > otherwise an error will be reported: -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org