NSAmelchev commented on a change in pull request #8840:
URL: https://github.com/apache/ignite/pull/8840#discussion_r601379146
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsProcessor.java
##########
@@ -278,6 +307,29 @@ private void stopWriter() {
log.info("Performance statistics writer stopped.");
}
+ /** Rotate performance statistics writer. */
+ private void rotateWriter() throws Exception {
+ FilePerformanceStatisticsWriter oldWriter = null;
+
+ synchronized (mux) {
+ if (writer == null)
+ return;
+
+ FilePerformanceStatisticsWriter newWriter = new
FilePerformanceStatisticsWriter(ctx);
+
+ newWriter.start();
+
+ oldWriter = writer;
+
+ writer = newWriter;
+
+ oldWriter.stop();
+ }
+
+ if (oldWriter != null)
Review comment:
Add `log.isInfoEnabled()`, please
--
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]