}
} catch (ExecutionException | InterruptedException e) {
increaseReconcileCount(false);
+ updateReconciliationState(FAILED);
LOG.error("Error occurred while invoking reconcile RPC for node {}", this.nodeId, e);
- }
- finally {
+ } finally {
alarmAgent.clearNodeReconciliationAlarm(nodeId.longValue());
}
}
ReconciliationStateListBuilder stateBuilder = new ReconciliationStateListBuilder()
.withKey(new ReconciliationStateListKey(nodeId))
.setState(state);
- tx.merge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier, stateBuilder.build(), true);
- tx.submit();
+ try {
+ tx.merge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier, stateBuilder.build(), true);
+ tx.submit().get();
+ } catch (InterruptedException | ExecutionException e) {
+ LOG.error("Exception while updating reconciliation state: {}", nodeId, e);
+ }
}
}
}