Skip to content

Conversation

martijnvg
Copy link
Member

@martijnvg martijnvg commented Dec 20, 2023

Prior to this change, when a shard downsample task fails, the downsample api would return a successful response. This was due to a mistake, the FAILED status wasn't checked. Only whether COMPLETED, FAILED or CANCELLED flag were set. With this change if FAILED is the status then the downsample api will report an error.

@martijnvg martijnvg added the :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data label Dec 20, 2023
…ple api would return a successful response. This was due to a mistake, the FAILED status wasn't checked. Only whether COMPLETED, FAILED or CANCELLED flag were set. With this change if FAILED is the status then the downsample api will report an error.
@martijnvg martijnvg force-pushed the downsampling/do_not_ignore_failed_state branch from 82a19f2 to 3a65230 Compare December 20, 2023 15:46
@elasticsearchmachine
Copy link
Collaborator

Hi @martijnvg, I've created a changelog YAML for you.

@martijnvg martijnvg changed the title Don't ignore failed downsample state. Fix downsample api by returning a failure incase one or more downsample persistent tasks failed. Dec 20, 2023
@martijnvg martijnvg marked this pull request as ready for review December 20, 2023 15:49
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Dec 20, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@martijnvg martijnvg added the auto-backport Automatically create backport pull requests when merged label Dec 20, 2023
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.12

martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Dec 22, 2023
…le persistent tasks failed. (elastic#103615)

Prior to this change, when a shard downsample task fails, the downsample api would return a successful response. This was due to a mistake, the FAILED status wasn't checked. Only whether COMPLETED, FAILED or CANCELLED flag were set. With this change if FAILED is the status then the downsample api will report an error.
elasticsearchmachine pushed a commit that referenced this pull request Dec 22, 2023
…ownsample persistent tasks failed. (#103615) (#103689)

* Fix downsample api by returning a failure incase one or more downsample persistent tasks failed. (#103615)

Prior to this change, when a shard downsample task fails, the downsample api would return a successful response. This was due to a mistake, the FAILED status wasn't checked. Only whether COMPLETED, FAILED or CANCELLED flag were set. With this change if FAILED is the status then the downsample api will report an error.

* update skip version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.12.1 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants