Details
Description
Several bulk load FATE operations were taking a long time, but actual bulk load statistics were quite good.
The master bulk load threads were stuck in LoadFiles, specifically trying to get a connection to a random tablet server.
The method to get a random connection looks at all the tablet server locks in zookeeper. On a large cluster (say, one with more than 1000 nodes), this is a lot of lookups in zookeeper. And this is done for every file to be bulk loaded.
Normally, these lookups would be cached in zooCache, and the next look up would would all be from local memory. But the cache is a singleton in the master, so other activities, especially those that make RPC calls to zookeeper while holding the lock, will delay these lookups.
The master has a list of the active tablet servers. It can pick one at random and create a new connection to it, using, potentially thousands of fewer calls to the zoocache for each file to be loaded.
Attachments
Issue Links
- is related to
-
ACCUMULO-3508 Zoocache utilizes course grained locking causing unnecessary synchronization in many tserver ops
- Resolved
- relates to
-
ACCUMULO-4012 FATE lock-up
- Resolved