You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Yuan Tian (Jira)" <ji...@apache.org> on 2023/01/18 09:46:00 UTC

[jira] [Created] (IOTDB-5431) Concurrent bug caused by using synchronizedSet() in DriverScheduler

Yuan Tian created IOTDB-5431:
--------------------------------

             Summary: Concurrent bug caused by using synchronizedSet() in DriverScheduler
                 Key: IOTDB-5431
                 URL: https://issues.apache.org/jira/browse/IOTDB-5431
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Yuan Tian
            Assignee: Alima777
         Attachments: image-2023-01-18-17-43-53-454.png, image-2023-01-18-17-44-16-595.png

synchronizedSet() return a faked thread-safe Set, because its iterator method is not thread-safe.

If we use for-each syntax for that Set, it may cause ConcurrentModificationException.

!image-2023-01-18-17-43-53-454.png!

 

!image-2023-01-18-17-44-16-595.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)