[ https://issues.apache.org/jira/browse/IGNITE-24236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksandr Polovtsev updated IGNITE-24236: ----------------------------------------- Description: {{LogicalNode#toString}} contains a lot of information, namely {{userAttributes}} and {{systemAttributes}}. This is very inconvenient, because it pollutes the logs greatly: {code:java} Node added to logical topology [node=LogicalNode [userAttributes=MapN {}, systemAttributes=MapN {sql-system-views=SYSTEM_VIEWS,SYSTEM_VIEW_COLUMNS,INDEXES,SEQUENCES,ZONES,ZONE_STORAGE_PROFILES,TABLES,TABLE_COLUMNS,TRANSACTIONS,LOCKS,GLOBAL_PARTITION_STATES,LOCAL_PARTITION_STATES,SQL_QUERIES,COMPUTE_TASKS,LICENSES, node-physical-ram=38654705664, jvm-pid=28009, node-heap-init-size=603979776, node-off-heap-size=805306368, node-macs=0EB2DE146F37,9EFAE0ABF074, node-available-processors=12, node-heap-max-size=2147483648}, storageProfiles=ListN [default_aimem, default, default_aipersist], super=ClusterNodeImpl [id=28774a1a-a0e8-47db-b312-f62903e2f346, name=ihrt_rhfs_20000, address=127.0.0.1:20000, nodeMetadata=null]], topology=LogicalTopologySnapshot [version=17, nodes=Set12 [LogicalNode [userAttributes=MapN {}, systemAttributes=MapN {sql-system-views=SYSTEM_VIEWS,SYSTEM_VIEW_COLUMNS,INDEXES,SEQUENCES,ZONES,ZONE_STORAGE_PROFILES,TABLES,TABLE_COLUMNS,TRANSACTIONS,LOCKS,GLOBAL_PARTITION_STATES,LOCAL_PARTITION_STATES,SQL_QUERIES,COMPUTE_TASKS,LICENSES, node-physical-ram=38654705664, jvm-pid=28009, node-heap-init-size=603979776, node-off-heap-size=805306368, node-macs=0EB2DE146F37,9EFAE0ABF074, node-available-processors=12, node-heap-max-size=2147483648}, storageProfiles=ListN [default_aimem, default, default_aipersist], super=ClusterNodeImpl [id=28774a1a-a0e8-47db-b312-f62903e2f346, name=ihrt_rhfs_20000, address=127.0.0.1:20000, nodeMetadata=null]]], clusterId=6896dbf9-9eb9-4124-976e-d4fe78ad6e88]] {code} Most of the time we are only interested in the node name, node id and its address. It's proposed to print only minimal information when calling {{LogicalNode#toString}} and print more detailed information manually, where needed (e.g. {{org.apache.ignite.internal.distributionzones.DistributionZoneManager#updateLogicalTopologyInMetaStorage}}). > Reduce the amount of logs produced when printing the contents of a LogicalNode > ------------------------------------------------------------------------------ > > Key: IGNITE-24236 > URL: https://issues.apache.org/jira/browse/IGNITE-24236 > Project: Ignite > Issue Type: Improvement > Reporter: Aleksandr Polovtsev > Assignee: Aleksandr Polovtsev > Priority: Major > Labels: ignite-3 > > {{LogicalNode#toString}} contains a lot of information, namely > {{userAttributes}} and {{systemAttributes}}. This is very inconvenient, > because it pollutes the logs greatly: > {code:java} > Node added to logical topology [node=LogicalNode [userAttributes=MapN {}, > systemAttributes=MapN > {sql-system-views=SYSTEM_VIEWS,SYSTEM_VIEW_COLUMNS,INDEXES,SEQUENCES,ZONES,ZONE_STORAGE_PROFILES,TABLES,TABLE_COLUMNS,TRANSACTIONS,LOCKS,GLOBAL_PARTITION_STATES,LOCAL_PARTITION_STATES,SQL_QUERIES,COMPUTE_TASKS,LICENSES, > node-physical-ram=38654705664, jvm-pid=28009, node-heap-init-size=603979776, > node-off-heap-size=805306368, node-macs=0EB2DE146F37,9EFAE0ABF074, > node-available-processors=12, node-heap-max-size=2147483648}, > storageProfiles=ListN [default_aimem, default, default_aipersist], > super=ClusterNodeImpl [id=28774a1a-a0e8-47db-b312-f62903e2f346, > name=ihrt_rhfs_20000, address=127.0.0.1:20000, nodeMetadata=null]], > topology=LogicalTopologySnapshot [version=17, nodes=Set12 [LogicalNode > [userAttributes=MapN {}, systemAttributes=MapN > {sql-system-views=SYSTEM_VIEWS,SYSTEM_VIEW_COLUMNS,INDEXES,SEQUENCES,ZONES,ZONE_STORAGE_PROFILES,TABLES,TABLE_COLUMNS,TRANSACTIONS,LOCKS,GLOBAL_PARTITION_STATES,LOCAL_PARTITION_STATES,SQL_QUERIES,COMPUTE_TASKS,LICENSES, > node-physical-ram=38654705664, jvm-pid=28009, node-heap-init-size=603979776, > node-off-heap-size=805306368, node-macs=0EB2DE146F37,9EFAE0ABF074, > node-available-processors=12, node-heap-max-size=2147483648}, > storageProfiles=ListN [default_aimem, default, default_aipersist], > super=ClusterNodeImpl [id=28774a1a-a0e8-47db-b312-f62903e2f346, > name=ihrt_rhfs_20000, address=127.0.0.1:20000, nodeMetadata=null]]], > clusterId=6896dbf9-9eb9-4124-976e-d4fe78ad6e88]] > {code} > Most of the time we are only interested in the node name, node id and its > address. > It's proposed to print only minimal information when calling > {{LogicalNode#toString}} and print more detailed information manually, where > needed (e.g. > {{org.apache.ignite.internal.distributionzones.DistributionZoneManager#updateLogicalTopologyInMetaStorage}}). -- This message was sent by Atlassian Jira (v8.20.10#820010)