[jira] [Created] (IGNITE-12646) When DEBUG mode is enabled GridToStringBuilder may throw java.util.ConcurrentModificationException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-12646) When DEBUG mode is enabled GridToStringBuilder may throw java.util.ConcurrentModificationException

Anton Vinogradov (Jira)
Sergey Chugunov created IGNITE-12646:
----------------------------------------

             Summary: When DEBUG mode is enabled GridToStringBuilder may throw java.util.ConcurrentModificationException
                 Key: IGNITE-12646
                 URL: https://issues.apache.org/jira/browse/IGNITE-12646
             Project: Ignite
          Issue Type: Bug
            Reporter: Sergey Chugunov
            Assignee: Sergey Chugunov
             Fix For: 2.9


With DEBUG enabled many components like CommunicationSPI start to log much larger chunks of information e.g. communication messages are logged as is.

When big enough message with non-thread safe collection inside is logged by communication thread it is possible that some other thread started processing the same message. If processing involves modifying of the collection communication thread will get ConcurrentModificationException when in the middle of iterating over it.

GridToStringBuilder should be safe from throwing this exception and (optionally) any type of RuntimeException.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)