Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1107,9 +1107,18 @@
if (_mshostId != null) {
final ManagementServerHostVO mshost = _mshostDao.findByMsid(_msId);
if (mshost != null) {
final ManagementServerStatusVO mshostStatus = mshostStatusDao.findByMsId(mshost.getUuid());
mshostStatus.setLastJvmStop(new Date());
mshostStatusDao.update(mshostStatus.getId(), mshostStatus);
ManagementServerStatusVO mshostStatus = mshostStatusDao.findByMsId(mshost.getUuid());

Check warning on line 1110 in framework/cluster/src/main/java/com/cloud/cluster/ClusterManagerImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/cluster/src/main/java/com/cloud/cluster/ClusterManagerImpl.java#L1110

Added line #L1110 was not covered by tests
if (mshostStatus != null) {
mshostStatus.setLastJvmStop(new Date());
mshostStatusDao.update(mshostStatus.getId(), mshostStatus);

Check warning on line 1113 in framework/cluster/src/main/java/com/cloud/cluster/ClusterManagerImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/cluster/src/main/java/com/cloud/cluster/ClusterManagerImpl.java#L1112-L1113

Added lines #L1112 - L1113 were not covered by tests
} else {
mshostStatus = new ManagementServerStatusVO();
mshostStatus.setMsId(mshost.getUuid());
mshostStatus.setLastSystemBoot(new Date());
mshostStatus.setLastJvmStart(new Date());
mshostStatus.setUpdated(new Date());
mshostStatusDao.persist(mshostStatus);

Check warning on line 1120 in framework/cluster/src/main/java/com/cloud/cluster/ClusterManagerImpl.java

View check run for this annotation

Codecov / codecov/patch

framework/cluster/src/main/java/com/cloud/cluster/ClusterManagerImpl.java#L1115-L1120

Added lines #L1115 - L1120 were not covered by tests
}

ManagementServerHost.State msHostState = ManagementServerHost.State.Down;
if (ManagementServerHost.State.Maintenance.equals(mshost.getState()) || ManagementServerHost.State.PreparingForMaintenance.equals(mshost.getState())) {
Expand Down