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

Inappropriate WARN log message for commit log sync delay when using commitlog_sync: batch

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: Legacy/Core
    • Labels:
      None
    • Environment:

      Linux

    • Severity:
      Low

      Description

      In v2.1.11 when using configuration
      commitlog_sync: batch
      commitlog_sync_batch_window_in_ms: 2

      will frequently get this WARN log though there is not a real problem.

      WARN [COMMIT-LOG-WRITER] 2016-03-03 00:40:11,646 AbstractCommitLogService.java:105 - Out of 142412 commit log syncs over the past 300s with average duration of 0.00ms, 35 have exceeded the configured commit interval by an average of 3.66ms

      WARN [COMMIT-LOG-WRITER] 2016-03-03 00:45:11,755 AbstractCommitLogService.java:105 - Out of 104605 commit log syncs over the past 300s with average duration of 1.74ms, 18314 have exceeded the configured commit interval by an average of 6.33ms

      Looks like BatchCommitLogService sets AbstractCommitLogService() pollIntervalMillis to the configured commitlog_sync_batch_window_in_ms. Since CASSANDRA-9504, this is by default set to 2 which causes this WARN message to be triggered unnecessarily.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                garyogasawara Gary Ogasawara
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: