Botond Dénes
bcb8f6a8dd
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:20:53 +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-08-08 08:09:41 +03:00
2022-02-13 14:16:16 +02:00
2022-01-18 12:15:18 +01:00
2022-09-14 13:09:51 -03:00
2022-01-18 12:15:18 +01:00
2022-07-12 00:23:29 +03:00
2022-12-14 14:47:33 +01:00
2023-07-28 13:56:28 +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-08-05 20:34:07 +03:00
2022-12-14 14:47:33 +01:00
2022-08-08 08:09:41 +03:00
2022-12-19 11:15:14 -03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-09-05 11:11:08 +02:00
2022-01-18 12:15:18 +01:00
2022-08-12 06:01:44 +03: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-11-30 11:06:43 +02:00
2023-01-03 19:54:13 +02:00
2022-11-30 11:06:43 +02:00
2023-05-07 14:27:29 +03:00
2022-11-16 16:30:38 +02:00
2022-03-30 15:42:51 +03:00
2023-06-08 04:29:51 -04:00
2022-12-06 22:24:17 +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-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
2023-01-16 21:10:56 +02:00
2022-08-07 12:53:05 +03:00
2022-04-26 14:46:42 +03:00
2023-03-16 10:42:03 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-12-08 15:37:33 +02:00
2022-10-20 12:33:41 +03:00
2023-07-27 15:46:37 +02:00
2022-01-18 12:15:18 +01:00
2022-12-08 15:37:33 +02:00
2022-01-18 12:15:18 +01:00
2022-08-08 08:02:27 +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-11-17 19:01:45 +03:00
2022-11-03 17:23:40 +02:00
2022-01-18 12:15:18 +01:00
2022-09-16 14:57:23 +03:00
2022-09-16 12:16:57 +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-12-19 11:15:14 -03:00
2022-11-30 11:06:43 +02:00
2022-12-06 11:21:16 +01:00
2022-01-18 12:15:18 +01:00
2022-12-14 14:47:33 +01:00
2022-12-08 15:37:33 +02:00
2023-07-11 11:09:25 +03:00
2023-07-12 10:09:56 +03:00
2022-12-08 15:37:33 +02:00
2023-01-10 12:01:36 +01:00
2022-12-13 14:17:18 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-11-21 15:48:26 +02:00
2022-08-10 06:01:47 +03:00
2023-08-09 10:20:53 +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-12-14 14:47:33 +01:00
2022-06-22 20:16:48 +02:00
2023-04-14 10:37:30 +03:00
2022-12-08 15:37:33 +02:00
2023-01-03 19:54:13 +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-05-15 18:02:40 +02:00
2022-05-11 16:49:31 +02:00
2023-01-12 16:21:26 +01:00
2022-05-10 22:10:40 +03:00
2022-02-17 15:24:24 +02:00
2022-12-08 15:37:33 +02:00
2022-11-30 11:06:43 +02:00
2022-11-14 16:06:24 +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-10-20 12:33:41 +03:00
2022-12-06 11:21:16 +01:00
2023-07-20 16:46:15 +03:00
2023-06-29 12:04:35 +03:00
2023-07-20 16:46:15 +03:00
2022-12-15 10:14:49 +03:00
2022-12-15 10:14:49 +03:00
2022-06-03 07:26:29 +03:00
2022-05-25 09:27:04 +03:00
2023-01-09 20:17:57 +02:00
2022-12-08 15:37:33 +02:00
2023-01-08 15:34:28 +02:00
2023-01-09 20:17:57 +02:00
2023-04-24 17:51:01 +03:00
2022-11-30 11:06:43 +02:00
2023-07-12 09:24:56 +03:00
2022-09-16 14:57:23 +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-10-13 17:59:13 +03:00
2023-01-16 21:10:56 +02:00
2023-01-03 19:54:13 +02:00
2022-07-11 09:17:30 +02:00
2023-04-17 13:13:35 +02:00
2022-01-18 12:15:18 +01:00
2022-02-16 10:19:47 +02:00
2023-07-31 03:43:44 -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-10-06 18:00:09 +03:00
2022-12-08 15:37:33 +02:00
2022-01-18 12:15:18 +01:00
2023-01-06 14:07:29 +01:00
2023-01-06 14:07:29 +01:00