[ https://issues.apache.org/jira/browse/HDFS-16597?focusedWorklogId=775620&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-775620 ]
ASF GitHub Bot logged work on HDFS-16597: ----------------------------------------- Author: ASF GitHub Bot Created on: 28/May/22 04:19 Start Date: 28/May/22 04:19 Worklog Time Spent: 10m Work Description: ayushtkn commented on PR #4362: URL: https://github.com/apache/hadoop/pull/4362#issuecomment-1140167858 Merged. Thanx @slfan1989 for the contribution and @goiri for the review!!! Issue Time Tracking ------------------- Worklog Id: (was: 775620) Time Spent: 1h (was: 50m) > RBF: Improve RouterRpcServer#reload With Lambda > ----------------------------------------------- > > Key: HDFS-16597 > URL: https://issues.apache.org/jira/browse/HDFS-16597 > Project: Hadoop HDFS > Issue Type: Improvement > Components: rbf > Affects Versions: 3.4.0 > Reporter: fanshilun > Assignee: fanshilun > Priority: Minor > Labels: pull-request-available > Time Spent: 1h > Remaining Estimate: 0h > > When reading the code, I found that RouterRpcServer#reload uses the following > method to submit threads > RouterRpcServer#reload > {code:java} > public ListenableFuture<DatanodeInfo[]> reload( > final DatanodeReportType type, DatanodeInfo[] oldValue) > throws Exception { > return executorService.submit(new Callable<DatanodeInfo[]>() { > @Override > public DatanodeInfo[] call() throws Exception { > return load(type); > } > }); > } {code} > This place is better to use lambda way -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org