Details
-
Improvement
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.90.2
-
None
-
None
-
Incompatible change, Reviewed
-
Description
The new master uses a lot of synchronized blocks to be safe, but it only takes a few jstacks to see that there's multiple layers of lock contention when a bunch of regions are moving (like when the balancer runs). The main culprits are regionInTransition in AssignmentManager, ZKAssign that uses ZKW.getZNnodes (basically another set of region in transitions), and locking at the RegionState level.
My understanding is that even tho we have multiple threads to handle regions in transition, everything is actually serialized. Most of the time, lock holders are talking to ZK or a region server, which can take a few milliseconds.
A simple example is when AssignmentManager wants to update the timers for all the regions on a RS, it will usually be waiting on another thread that's holding the lock while talking to ZK.
Attachments
Attachments
Issue Links
- is depended upon by
-
HBASE-4335 Splits can create temporary holes in .META. that confuse clients and regionservers
- Closed