Skip to content

[Backport 3.5] fix: Set cancelAfterTimeInterval on SearchRequest in InputService and…#2043

Open
opensearch-trigger-bot[bot] wants to merge 1 commit into3.5from
backport-2042-to-3.5
Open

[Backport 3.5] fix: Set cancelAfterTimeInterval on SearchRequest in InputService and…#2043
opensearch-trigger-bot[bot] wants to merge 1 commit into3.5from
backport-2042-to-3.5

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 665cd28 from #2042.

… DocLevelMonitorFanOut (#2042)

PR #1366 added cancelAfterTimeInterval to BucketLevelMonitorRunner and
DocumentLevelMonitorRunner, but missed InputService.getSearchRequest()
and collectInputResultsForADMonitor(). TransportDocLevelMonitorFanOutAction
was added after #1366 and also lacks the setting on its 3 SearchRequest
sites.

This sets cancelAfterTimeInterval on all remaining SearchRequest
constructions in monitor runners, guarding against the -1 default to
avoid setting a negative timeout.

Adds unit tests for getCancelAfterTimeInterval().

Resolves #827

Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
Co-authored-by: Manaswini Ragamouni <ragamanu@amazon.com>
(cherry picked from commit 665cd28)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant