You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/03/06 17:21:30 UTC
[GitHub] [hadoop] lamber-ken opened a new pull request #2750: HADOOP-15880. Reduce redundant end logsegment rpc
lamber-ken opened a new pull request #2750:
URL: https://github.com/apache/hadoop/pull/2750
## ISSUE
https://issues.apache.org/jira/browse/HDFS-15880
## OUTLINE
The SNN always send end logsegment rpc in cycle(dfs.ha.log-roll.period=120s).
-
- If no edit request occurs during this period, ANN will still send the RPC request to the journal node which is redundant.
- The `FSEditLog#endCurrentLogSegment` is synchronized will affetc other rpc requests.
Editlogs only contains two operations :
```
LogSegmentOp [opCode=OP_START_LOG_SEGMENT, txid=-12345]
LogSegmentOp [opCode=OP_END_LOG_SEGMENT, txid=-12345]
```
```
[dcadmin@dw-work-006 ~]$ ll /work/data/hadoop/hdfs/journalnode/nn-work/current/
total 1100
-rw-r----- 1 dcadmin dcadmin 8 Mar 7 01:02 committed-txid
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:35 edits_0000000000000000001-0000000000000000002
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:37 edits_0000000000000000003-0000000000000000004
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:39 edits_0000000000000000005-0000000000000000006
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:41 edits_0000000000000000007-0000000000000000008
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:43 edits_0000000000000000009-0000000000000000010
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:45 edits_0000000000000000011-0000000000000000012
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:48 edits_0000000000000000013-0000000000000000014
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:50 edits_0000000000000000015-0000000000000000016
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:52 edits_0000000000000000017-0000000000000000018
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:54 edits_0000000000000000019-0000000000000000020
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:56 edits_0000000000000000021-0000000000000000022
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 00:58 edits_0000000000000000023-0000000000000000024
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 01:00 edits_0000000000000000025-0000000000000000026
-rw-r----- 1 dcadmin dcadmin 42 Mar 7 01:02 edits_0000000000000000027-0000000000000000028
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org
[GitHub] [hadoop] lamber-ken closed pull request #2750: HADOOP-15880. Reduce redundant end logsegment rpc
Posted by GitBox <gi...@apache.org>.
lamber-ken closed pull request #2750:
URL: https://github.com/apache/hadoop/pull/2750
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org