Aleksandr Sarantsev
f0c0733a64
storcon: Ignore stuck reconciles when considering optimizations ( #12589 )
...
## Problem
The `keep_failing_reconciles` counter was introduced in #12391 , but
there is a special case:
> if a reconciliation loop claims to have succeeded, but maybe_reconcile
still thinks the tenant is in need of reconciliation, then that's a
probable bug and we should activate a similar backoff to prevent
flapping.
This PR redefines "flapping" to include not just repeated failures, but
also consecutive reconciliations of any kind (success or failure).
## Summary of Changes
- Replace `keep_failing_reconciles` with a new `stuck_reconciles` metric
- Replace `MAX_CONSECUTIVE_RECONCILIATION_ERRORS` with
`MAX_CONSECUTIVE_RECONCILES`, and increasing that from 5 to 10
- Increment the consecutive reconciles counter for all reconciles, not
just failures
- Reset the counter in `reconcile_all` when no reconcile is needed for a
shard
- Improve and fix the related test
---------
Co-authored-by: Aleksandr Sarantsev <aleksandr.sarantsev@databricks.com >
2025-07-17 14:52:57 +00:00
..
2025-07-10 08:06:33 +00:00
2025-03-30 18:58:33 +00:00
2025-07-10 10:07:21 +00:00
2025-03-30 18:58:33 +00:00
2024-10-08 14:32:26 -05:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-06-17 15:08:59 +00:00
2025-07-09 17:16:06 +00:00
2025-03-30 18:58:33 +00:00
2025-07-04 10:25:03 +00:00
2025-07-15 14:36:28 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2024-11-25 09:01:05 +00:00
2025-07-15 14:36:28 +00:00
2025-07-17 13:20:40 +00:00
2025-05-20 09:03:36 +00:00
2025-05-06 22:19:15 +00:00
2024-11-08 12:19:18 -06:00
2025-07-15 10:45:49 +00:00
2025-03-30 18:58:33 +00:00
2025-04-24 13:51:09 +00:00
2025-06-18 10:01:05 +00:00
2025-03-30 18:58:33 +00:00
2025-06-05 11:43:04 +00:00
2024-10-08 14:32:26 -05:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-05-29 13:01:10 +00:00
2025-07-10 08:06:33 +00:00
2025-03-30 18:58:33 +00:00
2025-05-06 22:02:12 +00:00
2025-07-10 08:06:33 +00:00
2025-03-30 18:58:33 +00:00
2024-10-18 15:07:36 +03:00
2025-07-09 15:35:19 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-04-04 18:04:39 +00:00
2024-10-08 14:32:26 -05:00
2025-05-06 07:24:27 +00:00
2025-06-05 11:27:14 +00:00
2025-05-30 12:14:36 +00:00
2025-06-05 18:53:14 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-02-03 12:44:47 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-05-28 07:00:52 +00:00
2025-03-31 19:49:32 +00:00
2025-07-10 18:37:54 +00:00
2025-04-08 03:52:50 +00:00
2025-04-17 05:07:45 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-02-03 12:44:47 +00:00
2025-04-09 13:16:15 +00:00
2024-10-08 14:32:26 -05:00
2025-03-30 18:58:33 +00:00
2025-04-23 14:03:19 +00:00
2025-06-17 17:46:35 +00:00
2025-03-30 18:58:33 +00:00
2025-07-15 20:22:57 +00:00
2025-03-30 18:58:33 +00:00
2025-06-19 11:17:01 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-06-25 13:40:38 +00:00
2024-11-21 16:25:31 +00:00
2024-11-19 22:29:57 +02:00
2025-04-14 09:05:29 +00:00
2025-07-10 14:39:38 +00:00
2025-03-30 18:58:33 +00:00
2025-04-04 17:30:58 +00:00
2025-03-30 18:58:33 +00:00
2025-04-28 17:24:55 +00:00
2025-04-11 09:38:05 +00:00
2025-07-17 08:57:36 +00:00
2025-07-02 16:30:47 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-06-10 05:32:03 +00:00
2025-05-30 15:20:46 +00:00
2025-03-30 18:58:33 +00:00
2025-06-20 14:50:03 +00:00
2025-03-30 18:58:33 +00:00
2025-02-25 12:23:04 +00:00
2025-02-03 12:44:47 +00:00
2025-04-02 10:43:05 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-06-10 08:46:29 +00:00
2025-05-12 15:48:48 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-07-08 12:56:22 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-07-10 18:37:54 +00:00
2025-05-20 15:38:27 +00:00
2025-05-09 07:48:30 +00:00
2025-06-20 10:33:11 +00:00
2025-06-06 11:54:07 +00:00
2025-07-12 04:57:04 +00:00
2025-03-30 18:58:33 +00:00
2025-07-11 19:27:55 +00:00
2025-02-28 21:07:21 +00:00
2025-05-12 15:48:48 +00:00
2025-04-25 14:28:56 +00:00
2025-07-17 14:52:57 +00:00
2025-06-19 11:17:01 +00:00
2025-07-09 15:22:54 +00:00
2025-03-30 18:58:33 +00:00
2025-06-05 11:43:04 +00:00
2025-06-05 11:43:04 +00:00
2025-06-12 08:10:22 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-07-08 12:56:22 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-07-15 14:36:28 +00:00
2025-03-30 18:58:33 +00:00
2025-06-27 15:14:55 +00:00
2025-03-30 18:58:33 +00:00
2025-07-11 18:56:39 +00:00
2025-06-23 22:26:38 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2025-03-30 18:58:33 +00:00
2024-10-08 14:32:26 -05:00
2024-10-28 17:47:15 -05:00
2025-03-30 18:58:33 +00:00
2024-11-14 17:19:13 +02:00
2025-06-19 11:17:01 +00:00
2025-07-16 14:43:17 +00:00
2025-07-04 10:25:03 +00:00
2025-07-14 16:37:04 +00:00
2025-03-30 18:58:33 +00:00