nizhikov commented on a change in pull request #8840:
URL: https://github.com/apache/ignite/pull/8840#discussion_r596926753
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsProcessor.java
##########
@@ -278,6 +325,32 @@ private void stopWriter() {
log.info("Performance statistics writer stopped.");
}
+ /** Rotate performance statistics writer. */
+ private void rotateWriter() throws IgniteCheckedException, IOException {
+ try {
+ synchronized (mux) {
+ if (writer != null) {
+ FilePerformanceStatisticsWriter newWriter = new
FilePerformanceStatisticsWriter(ctx);
+
+ newWriter.start();
+
+ FilePerformanceStatisticsWriter oldWriter = writer;
+
+ writer = newWriter;
+
+ oldWriter.stop();
+ }
+ }
+
+ log.info("Performance statistics writer rotated.");
Review comment:
Let's log a file that can be used for analysis here.
`Performance statistics writer rotated[writtenFile=001.prf]`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]