grafana/grafana-aws-sdk

Bug: Multiple Async Datasources overwrite each other's connections

Closed this issue · 0 comments

When the AsyncAwsDatasource was added, instead of having a map of ids to connections like sqlds it was created with a single static AsyncDB. This meant that if multiple async datasources were initialized, the later ones would overwrite the earlier one. Thus, all requests to AsyncDB specific functions would be made to whatever the newest async datasource was while the non-exclusive functions (like QueryContext) would be made to the correct datasource. This should be updated to a map.