[jira] [Created] (FLINK-14650) Thread safety issue in the piece of code example of dev/stream/testing document

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

[jira] [Created] (FLINK-14650) Thread safety issue in the piece of code example of dev/stream/testing document

Shang Yuanchun (Jira)
Zhenghua Gao created FLINK-14650:
------------------------------------

             Summary: Thread safety issue in the piece of code example of dev/stream/testing document
                 Key: FLINK-14650
                 URL: https://issues.apache.org/jira/browse/FLINK-14650
             Project: Flink
          Issue Type: Improvement
          Components: Documentation
            Reporter: Zhenghua Gao


As mentioned by Gilles in user ML[1], the piece of code example has thread safety issue.

One possibility is use Collections.synchronizedList() to create a thread-safety list and remove the synchronized keyword.

[1] [http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Documentation-issue-maybe-td30929.html]



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