//异步触发LockCreateCallback->LedgerIdReadCallback->buildStateFromLedger->LoggerExecutor
//主线程不阻塞,继续执行下面的代码
zk.create(LoggerConstants.OMID_LOCK_PATH, new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL,
new LockCreateCallback(), ctx);
new BookKeeperStateLogger(zk).initialize(new LoggerInitCallback() {
public void loggerInitComplete(int rc, StateLogger sl, Object ctx) {
if (rc == Code.OK) {
if (LOG.isDebugEnabled()) {
LOG.debug("Logger is ok.");
}