Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6895

Reduce flush, close and open calls in SimpleLogger::flush()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Do
    • Impala 3.0
    • None
    • Backend
    • ghx-label-8

    Description

      Currently, SimpleLogger provides a Flush() interface which is used by its client(s) to periodically (hard-coded to 5 seconds) flush the log file. We could eliminate these flush threads by keeping track of last flush time, and have the caller of SimpleLogger::AppendEntry() flush on demand (now - last_flush_time >= 5 seconds or whatever).

      This has the added benefit of reducing contention on the SimpleLogger::log_file_lock_ mutex to just between the threads adding entries to the log file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zoram Zoram Thanga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: