mirror of https://github.com/apache/nifi.git
NIFI-1457:
- Update heartbeat bean when primary state changes.
This commit is contained in:
parent
77ab5d3684
commit
8cf34c3ea5
|
@ -3108,6 +3108,9 @@ public class FlowController implements EventAccess, ControllerServiceProvider, R
|
|||
// update primary
|
||||
this.primary = primary;
|
||||
eventDrivenWorkerQueue.setPrimary(primary);
|
||||
|
||||
// update the heartbeat bean
|
||||
this.heartbeatBeanRef.set(new HeartbeatBean(rootGroup, primary, connected));
|
||||
} finally {
|
||||
rwLock.writeLock().unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue