mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CloudWatch Logs: Add retry strategy for hitting max concurrent queries (#39290)
* Add error passing and retry strategy * Change generic error to specific one * Make the error more generic * Refactor retry strategy * Add retry that handles multiple queries * Rollback some backend changes * Remove simple retry strategy * Add comments * Add tests * Small test fixes * Add log timeout config * Fix tests * Fix tests * Add validation * Remove commented code and add comment * Fix snapshots * Remove unnecessary cast
This commit is contained in:
@@ -3,7 +3,6 @@ package cloudwatch
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -285,7 +284,7 @@ func TestQuery_StartQuery(t *testing.T) {
|
||||
})
|
||||
require.Error(t, err)
|
||||
|
||||
assert.Equal(t, fmt.Errorf("invalid time range: start time must be before end time"), err)
|
||||
assert.Contains(t, err.Error(), "invalid time range: start time must be before end time")
|
||||
})
|
||||
|
||||
t.Run("valid time range", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user