Skip to content

Commit

Permalink
Fix PIT issue (elastic#176699)
Browse files Browse the repository at this point in the history
  • Loading branch information
szaffarano authored and fkanout committed Mar 4, 2024
1 parent d4dce2f commit bd31a5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ export class TelemetryReceiver implements ITelemetryReceiver {
pit: { id: pitId },
search_after: searchAfter,
size: telemetryConfiguration.telemetry_max_buffer_size,
expand_wildcards: ['open' as const, 'hidden' as const],
};

let response = null;
Expand All @@ -461,7 +460,7 @@ export class TelemetryReceiver implements ITelemetryReceiver {

if (numOfHits > 0) {
const lastHit = response?.hits.hits[numOfHits - 1];
searchAfter = lastHit?.sort;
query.search_after = lastHit?.sort;
} else {
fetchMore = false;
}
Expand Down Expand Up @@ -807,6 +806,7 @@ export class TelemetryReceiver implements ITelemetryReceiver {
await this.esClient.openPointInTime({
index: `${indexPattern}*`,
keep_alive: keepAlive,
expand_wildcards: ['open' as const, 'hidden' as const],
})
).id;

Expand Down

0 comments on commit bd31a5b

Please sign in to comment.