Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6643

Log saver can spam master logs, if there's an underlying issue

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0, 3.3.6
    • Fix Version/s: 3.5.0, 3.3.7, 3.4.4
    • Component/s: Log
    • Labels:
      None
    • Release Notes:
      Fixed an issue that caused massive log message when there are underlying HDFS issues.
    • Rank:
      1|hzzh2f:

      Description

      If log saver has a non-transient error (such as hdfs being down) while saving attempting to save log files, it spams the master logs pretty darn hard.

      In LogWriter.java, there's this message logged with a stack trace:
      "Caught exception during save, will try again"

      It spams about a thousand times per second, and it fills up the logs at about 100MB per minute.

      At the minimum, we should sleep for some short duration before retrying. Or have a back-off retry mechanism, perhaps with an upper limit on the retry time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poorna Poorna Chandra
                Reporter:
                ali.anwar Ali Anwar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: