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/28 03:10:00 UTC

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

     [ https://issues.apache.org/jira/browse/IOTDB-5431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuan Tian reassigned IOTDB-5431:
--------------------------------

    Assignee: Yuan Tian  (was: Alima777)

> 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: Yuan Tian
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2023-01-18-17-43-53-454.png, image-2023-01-18-17-44-16-595.png
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> 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)