@kaijianding this is not a matter of the size variable increment, this is a matter of elementData array update. See this thread: http://cs.oswego.edu/pipermail/concurrency-interest/2018-September/016526.html (ArrayList could have easily avoided this race, but currently it doesn't.)
[ Full content available at: https://github.com/apache/incubator-druid/issues/6322 ] This message was relayed via gitbox.apache.org for devnull@infra.apache.org