Skip to content

Commit 2a1435f

Browse files
committed
[debug] Add debug log - to be removed
1 parent 98d342a commit 2a1435f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/benchrunner/runners/common/elasticsearch.go

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func CountDocsInDataStream(ctx context.Context, esapi *elasticsearch.API, dataSt
2727
defer resp.Body.Close()
2828

2929
if resp.StatusCode == http.StatusServiceUnavailable && strings.Contains(resp.String(), "no_shard_available_action_exception") {
30+
logger.Debugf("could not get total hits (no_shard_available_action exception): %s", resp.String())
3031
// Index is being created, but no shards are available yet.
3132
// See https://github.com/elastic/elasticsearch/issues/65846
3233
return 0, nil

0 commit comments

Comments
 (0)