Lock Analyzer

Randgalt edited this page May 17, 2012 · 4 revisions

Exhibitor can analyze a set of ZNodes that represent lock recipes. Usually, a lock recipe has a parent ZNode with ephemeral child nodes. In order for the analysis to work, some sort of process ID must be written as the data for the ephemeral child nodes (Curator writes the client IP address).

To perform the analysis, click the “Analyze” button at the bottom of the Explorer. Enter multiple ZNode parent paths as well as the maximum number of locks for each node. For a mutex, the max is 1. A semaphore, though, can have more than one.

The analyzer will report the owners of each of the locks and any possible deadlocks.