Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> Double Synchronization in TabletServer Class?

Copy link to this message
Double Synchronization in TabletServer Class?
I was poking around in
and noticed the following declaration:

    private final SortedMap<KeyExtent,Tablet> onlineTablets Collections.synchronizedSortedMap(new TreeMap<KeyExtent,Tablet>());

Then I also noticed this code construct in the same file:

  synchronized (openingTablets) {

My understanding of concurrency is slight but to my untrained eye I am
seeing a double synchronization. Am I missing something?