-
Couldn't load subscription status.
- Fork 9.1k
HDFS-17312. packetsReceived metric should ignore heartbeat packet. #6394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
@Hexiaoqiao @zhangshuyan0 @tomscut @tasanuma Sir, could you please review this simple modification when you are free ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if there any other parts of the system that might rely on the current behavior of the packetsReceived metric including heartbeat packets? We need to ensure this change doesn't inadvertently affect other functionalities.
Testing and Validation: Can you confirm if there are existing tests that cover this change or if new tests are needed? It's essential to validate that this modification behaves as expected in various scenarios, including edge cases.
...-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java
Show resolved
Hide resolved
Hi, @ashutoshcipher. Sir. Thanks for your replying. I have checked other parts which using packetsReceived metrics. There are no parts or functionalities rely on the current behavior of the packetsReceived metric including heartbeat packets. We use find in path to search packetsReceived in all hadoop codes. |
|
@Hexiaoqiao @zhangshuyan0 @ashutoshcipher Sir, have updated this PR's description. Please take a look |
|
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reporting the issue. I think the change is appropriate. I also agree that there is no other parts that relies on the current code. +1.
|
The spotbugs warning is not related to this PR. |
|
Thanks for your contribution, @hfutatzhanghb. Thanks for your comments, @ashutoshcipher. |
|
@tasanuma Sir, thanks a lot for your reviewing and merging~ @ashutoshcipher Thanks for your reviewing~ |
@tasanuma Hi, sir. BTW, could you please add ‘Contributed by xxx’ in the commit message . hahaha~ |
…6394) Signed-off-by: Takanobu Asanuma <[email protected]> (cherry picked from commit 6a05376)
|
I believe the author of the commit, that can be confirmed by git log, is undoubtedly the contributor of the commit, so I haven't been including names in the commit messages. But if you prefer, I'll include your name from the next time. :) |
HaHa, Sir, thanks a lot for replying, It's all Okay for you whether including or not including nick name in commit message. I just like the nick "farmmamba"~ Thanks again~ |
…6394) Signed-off-by: Takanobu Asanuma <[email protected]> (cherry picked from commit 6a05376)
…pache#6394) Signed-off-by: Takanobu Asanuma <[email protected]>
Description of PR
Metric packetsReceived should ignore heartbeat packet and only used to count data packets and last packet in block.
As the above documatation shows, Its original goal is counting total packets received by DataNode excluding heartbeat packet from client. We should fix it.