joseluisll opened a new pull request, #8646:
URL: https://github.com/apache/hadoop/pull/8646

   ### Description of PR
   
   [HDFS-15491](https://issues.apache.org/jira/browse/HDFS-15491) reports that 
the `NumTransactionsBatchedInSync*` metrics documented for the JournalNode are 
absent from JournalNode JMX, and proposes adding the metric to 
`JournalMetrics.java`.
   
   The metrics are not missing — they are documented in the wrong section.
   
   The rows were added by 
[HDFS-12320](https://issues.apache.org/jira/browse/HDFS-12320) (commit 
`423ebcaf510`), which added the quantiles to `NameNodeMetrics.java` but 
documented them under **JournalNode** in `Metrics.md`. That issue was filed 
against the `metrics, namenode` components — the JournalNode was out of its 
scope, and no JournalNode change is needed here either.
   
   The rows are also wrong in detail: the quantiles are registered with 
`valueName = "count"`, so the emitted names end in `...thPercentileCount`, not 
`...thPercentileLatencyMicros`.
   
   [HDFS-13674](https://issues.apache.org/jira/browse/HDFS-13674) later 
documented the metric in the correct NameNodeActivity section but omitted the 
`Num` prefix, and left the JournalNode rows in place. The metric is currently 
documented twice, under two names, neither matching what is emitted.
   
   #### Changes
   
   1. Remove the 18 `NumTransactionsBatchedInSync*` rows from the JournalNode 
section.
   2. Correct the NameNodeActivity row to `` 
`NumTransactionsBatchedInSync`*num*`s(50/75/90/95/99)thPercentileCount` ``.
   
   Documentation only: 1 insertion, 19 deletions. No code or test changes.
   
   ### How was this patch tested?
   
   Documentation-only change; verified by inspection.
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation? — N/A
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? — N/A
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files? — N/A
   
   ### AI Tooling
   
   If an AI tool was used:
   
   - [x] The PR includes the phrase "Contains content generated by <tool>" 
where <tool> is the name of the AI tool used.
   - [x] My use of AI contributions follows the ASF legal policy 
https://www.apache.org/legal/generative-tooling.html
   
   Contains content generated by Claude Code.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to