Attempt a fix for #823 wherein writes to the annotations byte map were not synchronized, potentially leading to a race condition and stuck threads. Now we'll send a fresh list to the compaction code if notes were found, synchronize on the local byte map before making any modifications. Thanks to @thatsafunnyname.
Attempt a fix for #823 wherein writes to the annotations byte map
were not synchronized, potentially leading to a race condition and
stuck threads. Now we'll send a fresh list to the compaction code
if notes were found, synchronize on the local byte map before making
any modifications. Thanks to @thatsafunnyname.

Signed-off-by: Chris Larsen <83037b211e1d109d6858769a113e269c3139ffd3@yahoo-inc.com>

OpenTSDB/opentsdb,MadDogTechnology/opentsdb,OpenTSDB/opentsdb,alienth/opentsdb,MadDogTechnology/opentsdb,alienth/opentsdb,OpenTSDB/opentsdb,MadDogTechnology/opentsdb