Botond Dénes
8f0e7db96e
Merge 'semaphore mismatch: don't throw an error if both semaphores belong to user' from Michał Jadwiszczak
...
If semaphore mismatch occurs, check whether both semaphores belong
to user. If so, log a warning, log a `querier_cache_scheduling_group_mismatches` stat and drop cached reader instead of throwing an error.
Until now, semaphore mismatch was only checked in multi-partition queries. The PR pushes the check to `querier_cache` and perform it on all `lookup_*_querier` methods.
The mismatch can happen if user's scheduling group changed during
a query. We don't want to throw an error then, but drop and reset
cached reader.
This patch doesn't solve a problem with mismatched semaphores because of changes in service levels/scheduling groups but only mitigate it.
Refers: https://github.com/scylladb/scylla-enterprise/issues/3182
Refers: https://github.com/scylladb/scylla-enterprise/issues/3050
Closes : #14770
Closes #14736
* github.com:scylladb/scylladb:
querier_cache: add stats of scheduling group mismatches
querier_cache: check semaphore mismatch during querier lookup
querier_cache: add reference to `replica::database::is_user_semaphore()`
replica:database: add method to determine if semaphore is user one
(cherry picked from commit a8feb7428d )
2023-08-09 10:35:45 +03:00
..
2022-02-13 14:16:16 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-05-01 08:33:55 +03:00
2022-02-13 14:16:16 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-07-12 00:23:29 +03:00
2022-04-20 10:59:09 +03:00
2023-07-28 13:57:10 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-06-23 16:14:41 +02:00
2022-01-18 12:15:18 +01:00
2022-06-21 11:58:13 +03:00
2022-04-12 16:37:11 +03:00
2022-09-30 00:01:26 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-06-29 13:26:51 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-07-11 09:17:30 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-02-07 11:33:57 +02:00
2022-02-08 11:08:42 +01:00
2022-01-18 12:15:18 +01:00
2022-07-16 21:35:06 -03:00
2022-01-18 12:15:18 +01:00
2023-05-07 14:29:33 +03:00
2022-01-18 12:15:18 +01:00
2022-03-30 15:42:51 +03:00
2023-06-08 05:12:12 -04:00
2022-07-28 11:17:55 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-06-21 11:58:13 +03:00
2022-01-18 12:15:18 +01:00
2022-02-16 10:06:10 +02:00
2022-07-05 16:41:09 +02:00
2022-07-05 16:41:09 +02:00
2022-07-05 16:41:09 +02:00
2022-07-22 20:14:48 +03:00
2022-05-10 09:56:44 +03:00
2022-04-26 14:46:42 +03:00
2022-06-15 11:30:01 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-05-31 23:42:34 +03:00
2022-05-03 10:57:40 +03:00
2022-05-19 17:21:35 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-05-18 19:24:18 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-02-22 12:55:38 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-03-16 12:31:50 +03:00
2022-06-28 19:58:06 -03:00
2022-01-18 12:15:18 +01:00
2022-07-28 10:48:58 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-07-28 14:43:33 +03:00
2022-05-31 23:42:34 +03:00
2022-02-21 12:29:25 +02:00
2022-01-18 12:15:18 +01:00
2022-03-31 13:29:11 +03:00
2022-07-12 08:41:51 +03:00
2023-07-11 16:03:05 +03:00
2023-07-12 11:18:31 +03:00
2022-05-31 23:42:34 +03:00
2022-08-11 16:51:59 +02:00
2022-05-03 10:57:40 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-06-22 20:16:49 +02:00
2023-08-09 10:35:45 +03:00
2022-05-01 08:33:55 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-06-22 20:16:48 +02:00
2023-04-14 11:58:53 +03:00
2022-05-31 23:42:34 +03:00
2022-11-21 14:02:33 +02:00
2022-03-15 11:42:42 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-02-05 20:06:31 +02:00
2022-05-11 16:49:31 +02:00
2022-07-11 09:17:30 +02:00
2022-05-10 22:10:40 +03:00
2022-02-17 15:24:24 +02:00
2022-05-05 13:06:04 +03:00
2022-06-23 13:36:20 +03:00
2022-05-18 19:10:13 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-05-03 10:57:40 +03:00
2022-06-20 19:37:31 +03:00
2023-06-13 09:57:59 +03:00
2023-06-29 12:05:04 +03:00
2023-07-06 10:32:31 +03:00
2022-07-19 12:14:41 +03:00
2022-06-20 19:37:31 +03:00
2022-06-03 07:26:29 +03:00
2022-05-25 09:27:04 +03:00
2022-06-20 19:37:31 +03:00
2022-06-21 11:58:13 +03:00
2023-02-05 20:06:31 +02:00
2022-07-27 14:04:55 +03:00
2023-04-24 17:51:16 +03:00
2022-07-22 20:14:48 +03:00
2023-07-11 16:52:12 +03:00
2021-08-02 22:26:26 +03:00
2022-07-27 16:58:52 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-02-22 21:44:37 +02:00
2022-07-11 09:17:30 +02:00
2022-06-07 11:16:12 +02:00
2022-01-18 12:15:18 +01:00
2022-02-16 10:19:47 +02:00
2023-07-31 04:21:16 -04:00
2022-07-16 21:35:06 -03:00
2022-01-18 12:15:18 +01:00
2022-03-08 15:34:26 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-05-31 23:42:34 +03:00
2022-01-18 12:15:18 +01:00