-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
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.
- links to
-
Commit(master)
openjdk/jtreg/328147bd
-
Review(master)
openjdk/jtreg/305