Details
Description
There is a common pattern of logging a behavior that is normally extraneous. Under some circumstances, such a behavior becomes common, flooding the logs and making it difficult to see what else is going on in the system. Under such situations it is beneficial to limit how frequently the extraneous behavior is logged, while capturing some summary information about the suppressed log statements.
This is currently implemented in FSNamesystemLock (in HDFS-10713). We have additional use cases for this in HDFS-13791, so this is a good time to create a common utility for different sites to share this logic.
Attachments
Attachments
Issue Links
- is depended upon by
-
HDFS-13791 Limit logging frequency of edit tail related statements
- Resolved
- relates to
-
HADOOP-18567 LogThrottlingHelper: the dependent recorder is not triggered correctly
- Resolved