Skip to content

Conversation

@MingDu
Copy link

@MingDu MingDu commented Mar 21, 2025

Fix ambari-metrics-grafana start scipt only check pid file exist.
This commit fixes a bug where when the metrics-grafana service was stopped outside the Ambari interface, attempting to start Grafana through the Ambari interface would incorrectly report the service as already running while Grafana had actually failed to start. The resolution addresses this state mismatch and ensures proper service status synchronization.

  This commit fixes a bug where when the metrics-grafana service was stopped outside the Ambari interface, attempting to start Grafana through the Ambari interface would incorrectly report the service as already running while Grafana had actually failed to start. The resolution addresses this state mismatch and ensures proper service status synchronization.
@zRains zRains requested a review from JiaLiangC March 21, 2025 06:31
@MingDu
Copy link
Author

MingDu commented Mar 21, 2025

@JiaLiangC Can you review the code? JiaLiang.

return 0
fi
else
return 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a case where the PID file does not exist, but the process is still running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants