accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <>
Subject Double Synchronization in TabletServer Class?
Date Wed, 02 Jan 2013 15:44:07 GMT
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?

View raw message