mullerpeter / databricks-grafana

Grafana Databricks integration allowing direct connection to Databricks to query and visualize Databricks data in Grafana.
Apache License 2.0
55 stars 4 forks source link

Invalid SessionHandle: SessionHandle #6

Closed ChristianWr closed 1 year ago

ChristianWr commented 1 year ago

After running for a while having refresh every x minutes I ran into Invalid SessionHandle error. Is there a way to cathc this error and reinitiate a new session?

mullerpeter commented 1 year ago

Hey @ChristianWr, you're right the DB connection expires after some time, leading to the Invalid SessionHandle error. I added a temp fix for now (#7).

The fix is not optimal since it opens a new connection on each query, but should work for now while I search for a better solution.