Graylog2/graylog2-server — pull request #64 by ansyeow (2011-12-15 07:00:36+00:00)
Title: Attempt at #SERVER-86 -- ConcurrentModificationException

Hi Lennart & All,

This is my attempt at fixing #SERVER-86.

--I have combined methods getCount() and reset() into one method named getCountAndReset().
--The test is code very messy. But it appear to work.
--The GetAllHostsAndGetCountAndResetCallable submitted half-way through the increment loop was my
attempt at simulating a "get count" call while increments were being submitted by other threads.

I am really new at multi-threaded code. Hope to learn something here. :)

Andrew