Skip to content

[Data set quality] Fix error for stateful in updateFailureStore#233292

Merged
SoniaSanzV merged 1 commit intoelastic:mainfrom
SoniaSanzV:data_quality/fix_failure_store_route
Aug 28, 2025
Merged

[Data set quality] Fix error for stateful in updateFailureStore#233292
SoniaSanzV merged 1 commit intoelastic:mainfrom
SoniaSanzV:data_quality/fix_failure_store_route

Conversation

@SoniaSanzV
Copy link
Contributor

@SoniaSanzV SoniaSanzV commented Aug 28, 2025

Summary

I did an error when implementing #231846. In Stateful, when a data stream has the failure retention period set to default, I set the lifecycle to enabled: false, which is wrong. This is the config for a data stream with failure store enabled by default (before interacting with the modal).
Screenshot 2025-08-28 at 12 03 44

Before this PR: The lifecycle is set to false when no custom retention period, so the retention is not determined by the default value, which is incorrect:
Screenshot 2025-08-28 at 12 04 37

With this change: The enabled lifecycle is determined by the enabled fault storage and not by a customRetentionPeriod being assigned.
Screenshot 2025-08-28 at 12 05 45

With customPeriod:
Screenshot 2025-08-28 at 12 27 33

@SoniaSanzV SoniaSanzV requested a review from a team as a code owner August 28, 2025 10:12
@SoniaSanzV SoniaSanzV self-assigned this Aug 28, 2025
@SoniaSanzV SoniaSanzV added Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Feature:Streams This is the label for the Streams Project labels Aug 28, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@yngrdyn
Copy link
Contributor

yngrdyn commented Aug 28, 2025

An screenshot with also the end object when a customPeriod is set would be very helpful, so we can see all the cases in the description

@SoniaSanzV
Copy link
Contributor Author

An screenshot with also the end object when a customPeriod is set would be very helpful, so we can see all the cases in the description

Sure! Added to the PR description!

Copy link
Contributor

@yngrdyn yngrdyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix

@SoniaSanzV SoniaSanzV merged commit 582ce04 into elastic:main Aug 28, 2025
22 checks passed
@SoniaSanzV SoniaSanzV deleted the data_quality/fix_failure_store_route branch August 28, 2025 12:57
qn895 pushed a commit to qn895/kibana that referenced this pull request Sep 2, 2025
…tic#233292)

## Summary
I did an error when implementing
elastic#231846. In Stateful, when a data
stream has the failure retention period set to default, I set the
lifecycle to enabled: false, which is wrong. This is the config for a
data stream with failure store enabled by default (before interacting
with the modal).
<img width="706" height="326" alt="Screenshot 2025-08-28 at 12 03 44"
src="https://github.com/user-attachments/assets/4a0f78d9-f593-4b7c-bfe1-ee7c7eb90aeb"
/>

Before this PR: The lifecycle is set to false when no custom retention
period, so the retention is not determined by the default value, which
is incorrect:
<img width="636" height="287" alt="Screenshot 2025-08-28 at 12 04 37"
src="https://github.com/user-attachments/assets/387f423f-e3cf-4864-9508-124a60fcc38e"
/>

With this change: The enabled lifecycle is determined by the enabled
fault storage and not by a customRetentionPeriod being assigned.
<img width="688" height="321" alt="Screenshot 2025-08-28 at 12 05 45"
src="https://github.com/user-attachments/assets/7b05b988-96ac-4fd2-a0d3-bbe1663ba926"
/>


With customPeriod:
<img width="619" height="346" alt="Screenshot 2025-08-28 at 12 27 33"
src="https://github.com/user-attachments/assets/1d2d2846-7399-42cd-9f5d-fe96f0b09adc"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Streams This is the label for the Streams Project release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants