[
https://issues.apache.org/jira/browse/IGNITE-23948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kirill Tkalenko reassigned IGNITE-23948:
----------------------------------------
Assignee: Kirill Tkalenko
> Add print size only for MultipleRowReplicaRequest#binaryTuples in
> IgniteToStringBuilder#toString
> ------------------------------------------------------------------------------------------------
>
> Key: IGNITE-23948
> URL: https://issues.apache.org/jira/browse/IGNITE-23948
> Project: Ignite
> Issue Type: Improvement
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: ignite-3
>
> I noticed that in the logs we can see collections in network messages that
> are not informative and it would be enough for us to display only their size.
> For example:
> {noformat}
> [04:51:03]W: [:ignite-jdbc:integrationTest]
> [2024-12-10T04:51:03,234][WARN
> ][%ijbst_n_0%partition-operations-21][ReplicaManager] Failed to process
> replica request [request=ReadWriteMultiRowReplicaRequestImpl
> [binaryTuples=ArrayList [java.nio.HeapByteBuffer[pos=0 lim=21 cap=21],
> java.nio.HeapByteBuffer[pos=0 lim=21 cap=21]],
> commitPartitionId=TablePartitionIdMessageImpl [partitionId=3, tableId=16],
> coordinatorId=04805429-748a-44ef-af63-b4a7e5fc1917, deleted=null,
> enlistmentConsistencyToken=113626726969180171, full=false,
> groupId=TablePartitionIdMessageImpl [partitionId=2, tableId=16],
> requestType=RW_INSERT_ALL, schemaVersion=1, skipDelayedAck=true, tableId=16,
> timestamp=HybridTimestamp [physical=2024-12-10 04:51:03:225 +0000, logical=0,
> composite=113626727266713600],
> transactionId=0193aee8-0bad-0000-de3d-986200000001]].
> {noformat}
> I think we could introduce *IgniteToStringSizeOnly* to output only the sizes
> of collections, maps and arrays in the format "fieldname.size=123".
> Well, add something like this for generated messages, in this case for
> *org.apache.ignite.internal.partition.replicator.network.replication.MultipleRowReplicaRequest#binaryTuples*.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)