Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with partition var reduce_retention_period_immediately #702

Open
eambrosyupgrade opened this issue Nov 14, 2024 · 1 comment
Open
Labels

Comments

@eambrosyupgrade
Copy link

Problem

The variable reduce_retention_period_immediately is optional however it doesn't seem to track the changes in state.

If I reduce the retention period of a partition in terraform from say 100 > 90; and have this option set to false, it applies "successfully" but since the change is staged and the retention period is still 100d for the next week, I get continual drift in my terraform pipeline since the terraform state expects that the retention period should be 90d now, and is unaware that retention will change eventually.

So in a pipeline I have to set this to true, otherwise I get constant drift and applies that attempt to set the partition to a new retention period, in 7 days from the last apply.

Expected Behavior

The provider should record that this change is "staged"; timestamps of the swap and compare that with the timestamps for the retention reduction. Looking at the API here I think the issue is that that response value of retentionEffectiveAt isn't in state and doesn't seem to exist in the partition's resource.

@dlinsumo
Copy link
Collaborator

Internal jira SUMO-251300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants