PrintWriter(s) used by jtreg for agent logging aren't using autoFlush

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • jtreg8.2
    • Affects Version/s: None
    • Component/s: tools

      jtreg writes out logs to agentServer.<id>.trace and agent.trace files. These logs correspond to per agent server JVM and the agent server management and communication respectively. They play a crucial role during test failure analysis. In its current form the PrintWriter used to write out messages to these files aren't constructed with the "autoFlush" set to "true". As a result, it has been noticed that sometimes several of these messages don't get written out to the files, when something goes wrong.

      CODETOOLS-7903470 addressed this for the agentServer.<id>.trace file, but left out the same for agent.trace file. Furthermore, that fix can be improved to avoid explicit flush() and instead just construct the PrintWriter with autoFlush as true.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: