Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-11644

gc_warn_threshold_in_ms is not applied when it's greater than MIN_LOG_DURATION(200ms)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1.15, 2.2.7, 3.0.7, 3.7
    • None
    • None
    • Low

    Description

      The gc_warn_threshold_in_ms is supposed to be applied to StatusLogger when user specifies it. But in the source code of GCInspector, gc_warn_threshold_in_ms is used only when it is smaller than MIN_LOG_DURATION(200ms).

      The current logic is : STAT_THRESHOLD = Math.min(GC_WARN_THRESHOLD_IN_MS != 0 ? GC_WARN_THRESHOLD_IN_MS : MIN_LOG_DURATION, MIN_LOG_DURATION);

      My problem is that StatusLogger is logging too many info because of large tables, changing gc_warn_threshold_in_ms doesn't help because of this issue.

      Attachments

        1. CASSANDRA-11644.patch
          1 kB
          Zhao Yang

        Issue Links

          Activity

            People

              jasonstack Zhao Yang
              jasonstack Zhao Yang
              Zhao Yang
              Joshua McKenzie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: