Ejemplo n.º 1
0
  /**
   * If this is the first successful RDB update after errors, tell everybody to re-load the
   * configuration because otherwise they get out of sync.
   *
   * @throws Exception on error
   */
  protected void recoverFromRDBErrors() throws Exception {
    if (!had_RDB_error) return;

    // We should be on the work queue thread
    work_queue.assertOnThread();
    Activator.getLogger().info("RDB connection recovered, re-loading configuration");
    updateConfig(null);

    // If that worked out, reset error and inform clients
    had_RDB_error = false;
    messenger.sendReloadMessage();
  }