[GitHub] [incubator-druid] leventov commented on issue #8808: use copy-on-write list in InMemoryAppender

2019-11-07 Thread GitBox
leventov commented on issue #8808: use copy-on-write list in InMemoryAppender
URL: https://github.com/apache/incubator-druid/pull/8808#issuecomment-551062625
 
 
   @zhenxiao don't rebase your PRs. Your should **never** do this in Druid. 
Once you open a PR, you *only merge other branches into your PR branch*, never 
rebase it.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org



[GitHub] [incubator-druid] leventov commented on issue #8808: use copy-on-write list in InMemoryAppender

2019-11-06 Thread GitBox
leventov commented on issue #8808: use copy-on-write list in InMemoryAppender
URL: https://github.com/apache/incubator-druid/pull/8808#issuecomment-550400253
 
 
   @zhenxiao please merge the master branch into your PR branch to make the CI 
pass.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org



[GitHub] [incubator-druid] leventov commented on issue #8808: use copy-on-write list in InMemoryAppender

2019-11-05 Thread GitBox
leventov commented on issue #8808: use copy-on-write list in InMemoryAppender
URL: https://github.com/apache/incubator-druid/pull/8808#issuecomment-550170383
 
 
   @LoriLori `logEvents.toArray()` doesn't solve the race condition - it may 
still race with an addition to `logEvents` and throw some exception, unless you 
make both `append()` and `getLogEvents()` synchronized.
   
   Since this class resides in tests, not production, the performance doesn't 
matter and we shouldn't waste time comparing `synchronized` and 
`CopyOnWriteArrayList`. While `CopyOnWriteArrayList` solution is a bit simpler.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org