fr-ser / grafana-sqlite-datasource

Grafana Plugin to enable SQLite as a Datasource
Apache License 2.0
124 stars 17 forks source link

gpx_sqlite-datasource_windows_amd64.exe zombie process after Grafana exits #140

Closed igngi closed 1 month ago

igngi commented 1 month ago

Describe the bug After Grafana exits, gpx_sqlite-datasource_windows_amd64.exe keeps on running. Running Grafana multiple times will leave multiple instances of datasource_windows_amd64 running.

To Reproduce Steps to reproduce the behavior:

  1. Start Grafana with the extension installed
  2. Open any dashboards that use the extension
  3. Kill Grafana
  4. Check Task Manager

Screenshots image

Versions (please complete the following information):

Thanks!

fr-ser commented 1 month ago

I tried both on my Mac and Windows PC and I could not reproduce the bug.

Could you provide some more details?

I.e. how do you start and stop grafana?

igngi commented 1 month ago

Hi, thanks for the prompt reply.

I was starting Grafana by calling grafana.exe from my program (golang's exec.Command).

Because signalling a process to interrupt is not supported on Windows, I need to kill the process, so it doesn't exit properly and gpx_sqlite-datasource_windows_amd64.exe keeps running.

The problem has nothing to do with Grafana or the sqlite extension, so I will close this.

Thanks anyway!