You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "xtern (via GitHub)" <gi...@apache.org> on 2025/05/02 06:58:20 UTC

Re: [PR] IGNITE-24778 Add debug info methods to execution nodes [ignite-3]

xtern commented on code in PR #5674:
URL: https://github.com/apache/ignite-3/pull/5674#discussion_r2071185027


##########
modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteImpl.java:
##########
@@ -2101,4 +2103,14 @@ public PartitionReplicaLifecycleManager partitionReplicaLifecycleManager() {
     private static String convertToHoconString(ConfigurationRegistry configRegistry) {
         return HoconConverter.represent(configRegistry.superRoot(), List.of()).render(ConfigRenderOptions.concise().setJson(false));
     }
+
+    /** Triggers dumping node components state. This method is used for debugging purposes only. */
+    @TestOnly
+    public void dumpClusterState() {
+        IgniteStringBuilder sb = new IgniteStringBuilder()
+                .app("Dumping cluster state for node ").app(node().name()).app(":")
+                .nl();
+
+        lifecycleManager.dumpState(sb, "");
+    }

Review Comment:
   We need to print the contents of the buffer.



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org