You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/11/07 00:24:00 UTC

[jira] [Commented] (HDFS-16695) Improve Code with Lambda in org.apahce.hadoop.hdfs.server.namenode package

    [ https://issues.apache.org/jira/browse/HDFS-16695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18036026#comment-18036026 ] 

ASF GitHub Bot commented on HDFS-16695:
---------------------------------------

github-actions[bot] commented on PR #4668:
URL: https://github.com/apache/hadoop/pull/4668#issuecomment-3499945395

   We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
   If you feel like this was a mistake, or you would like to continue working on it, please feel free to re-open it and ask for a committer to remove the stale tag and review again.
   Thanks all for your contribution.




> Improve Code with Lambda in org.apahce.hadoop.hdfs.server.namenode package
> --------------------------------------------------------------------------
>
>                 Key: HDFS-16695
>                 URL: https://issues.apache.org/jira/browse/HDFS-16695
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: ZanderXu
>            Assignee: ZanderXu
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Improve Code with Lambda in org.apahce.hadoop.hdfs.server.namenode package.
> For example:
> Current logic:
> {code:java}
> public ListenableFuture<GetJournaledEditsResponseProto> getJournaledEdits(
>       long fromTxnId, int maxTransactions) {
>     return parallelExecutor.submit(
>         new Callable<GetJournaledEditsResponseProto>() {
>           @Override
>           public GetJournaledEditsResponseProto call() throws IOException {
>             return getProxy().getJournaledEdits(journalId, nameServiceId,
>                 fromTxnId, maxTransactions);
>           }
>         });
>   }
> {code}
> Improved Code with Lambda:
> {code:java}
> public ListenableFuture<GetJournaledEditsResponseProto> getJournaledEdits(
>       long fromTxnId, int maxTransactions) {
>     return parallelExecutor.submit(() -> getProxy().getJournaledEdits(
>         journalId, nameServiceId, fromTxnId, maxTransactions));
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org