760761762763764765766767768769770
} } } // Do some housekeeping before going to sleep housekeeping(); sleeper.sleep(lastMsg); } // for } catch (Throwable t) { LOG.fatal("Unhandled exception. Aborting...", t); abort(); }
464465466467468469470471472473474
} } } // Do some housekeeping before going to sleep housekeeping(); sleeper.sleep(lastMsg); } // for } catch (Throwable t) { if (!checkOOME(t)) { LOG.fatal("Unhandled exception. Aborting...", t); abort();
838839840841842843844845846847848
413414415416417418419420421422423
} } } // Do some housekeeping before going to sleep housekeeping(); sleeper.sleep(lastMsg); } // for } catch (OutOfMemoryError error) { abort(); LOG.fatal("Ran out of memory", error); } catch (Throwable t) {
412413414415416417418419420421422
411412413414415416417418419420421
302303304305306307308309310311312
private void loop() { // Check if we should stop every second. Sleeper sleeper = new Sleeper(1000, this); while (!this.stopped) { sleeper.sleep(); } } /** * Finish initialization of HMaster after becoming the primary master.
306307308309310311312313314315316
304305306307308309310311312313314