[ https://issues.apache.org/jira/browse/RATIS-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17126962#comment-17126962 ]
Shashikant Banerjee commented on RATIS-966: ------------------------------------------- Thanks [~ansh.khanna]/ {code:java} Should the count be incremented when an entry is appended or committed? (since uncommitted entries can be potentially discarded) {code} Count should change only when its committed. {code:java} Should the count be decremented incase they are discarded? {code} Yes. The idea is to to know count each type of entries in the raft log and at any point of time the metric should reflect what the raft log has. > Add metric for different types of log entries for a raft server impl > -------------------------------------------------------------------- > > Key: RATIS-966 > URL: https://issues.apache.org/jira/browse/RATIS-966 > Project: Ratis > Issue Type: Sub-task > Reporter: Shashikant Banerjee > Assignee: Ansh Khanna > Priority: Major > > Currently, a raft log entry can potentially consist of different types of > entries: > 1) Configuration > 2) MetaData > 3) StateMachine > > Idea here is track the count for the same for a given raft server impl. -- This message was sent by Atlassian Jira (v8.3.4#803005)