Sega76 commented on a change in pull request #8840:
URL: https://github.com/apache/ignite/pull/8840#discussion_r597086164
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsProcessor.java
##########
@@ -214,6 +234,33 @@ public void stopCollectStatistics() throws
IgniteCheckedException {
metastorage.write(PERF_STAT_KEY, false);
}
+ /**
+ * Rotate collecting performance statistics.
+ *
+ * @throws IgniteCheckedException If rotating failed.
+ */
+ public IgniteInternalFuture<?> rotateCollectStatistics() throws
IgniteCheckedException {
+ if (ctx.isStopping())
+ throw new NodeStoppingException("Operation has been cancelled
(node is stopping)");
+
+ if (!enabled())
+ throw new IgniteCheckedException("Performance statistics
collection not started.");
+
+ return rotateProc.start(UUID.randomUUID(), null).chain(
Review comment:
happens twice
--
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]