scylla-operator icon indicating copy to clipboard operation
scylla-operator copied to clipboard

Evaluate special 'now' terms in Scylla Manager tasks only on task creation

Open zimnx opened this issue 3 years ago • 2 comments

Special 'now' value was evaluated on every ScyllaCluster reconcilation. Because it's result is always different, task definition was always different than the same task stored in Manager state. Hence every task was constantly updated with newer startDate.

Fixes #838

zimnx avatar Nov 18 '21 15:11 zimnx

  • pls update the CRD description accordingly

done

  • shouldn't you set creationTimestamp on task create - it can be arbitrarily delayed

startDate cannot be in the past, so it's evaluated at reconcilation when task is about to be created with some extra buffer (30s) for 'now' startDate.

zimnx avatar Nov 23 '21 09:11 zimnx

last time we talked about now being an alias to creationTimestamp, I suppose this just wasn't update yet, right?

I validated and manager server rejects tasks with date in the past

zimnx avatar Nov 26 '21 11:11 zimnx

/test images

tnozicka avatar Aug 24 '23 08:08 tnozicka

/retest

zimnx avatar Nov 03 '23 13:11 zimnx

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rzetelskik, tnozicka, zimnx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

Flake: https://github.com/scylladb/scylla-operator/issues/1525

/test e2e-gke-parallel

zimnx avatar Nov 27 '23 13:11 zimnx

@zimnx: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gke d932c871a4607554093db5740bb335827b2d0aa0 link true /test e2e-gke

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Flakes: https://github.com/scylladb/scylla-operator/issues/1433 https://github.com/scylladb/scylla-operator/issues/1525

/test e2e-gke-parallel

zimnx avatar Nov 27 '23 14:11 zimnx

/lgtm

rzetelskik avatar Nov 27 '23 14:11 rzetelskik

Hallelujah

fruch avatar Nov 27 '23 16:11 fruch

Belated happy (2nd) birthday to this PR! :tada:

rzetelskik avatar Nov 27 '23 18:11 rzetelskik