Skip to content

Fix ambari-metrics-grafana start scipt only check pid file exist.#146

Open
MingDu wants to merge 1 commit into
apache:masterfrom
MingDu:master
Open

Fix ambari-metrics-grafana start scipt only check pid file exist.#146
MingDu wants to merge 1 commit into
apache:masterfrom
MingDu:master

Conversation

@MingDu

@MingDu MingDu commented Mar 21, 2025

Copy link
Copy Markdown

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

MingDu commented Mar 21, 2025

Copy link
Copy Markdown
Author

@JiaLiangC Can you review the code? JiaLiang.

return 0
fi
else
return 1

Copy link
Copy Markdown
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