Sun Chenyang
2e1318b8a0
[fix] (compaction) fix CompactionPermitLimiter causing compaction to stall (#35078)
## BUG
1. config::total_permits_for_compaction_score = 20000
2. Thread-B requests permits 11000, used_permits = 11000
3. Thread-A requests permits 12000,wait for used_permits + 12000 <=
20000
4. adjust config::total_permits_for_compaction_score = 10000
5. Thread-B releases permits,used_permits = 0,notify
Thread-A,used_permits + 12000 <= 10000
## FIx
we need to initialize total_permits instead of using the config
2024-05-28 18:52:34 +08:00
..
2024-05-28 13:19:18 +08:00
2024-05-28 13:12:03 +08:00
2024-05-23 19:06:21 +08:00
2024-03-02 17:12:34 +08:00
2023-12-27 23:43:43 +08:00
2023-12-27 23:43:43 +08:00
2024-01-12 13:58:19 +08:00
2023-12-04 14:47:36 +08:00
2024-02-03 20:24:39 +08:00
2024-03-01 14:21:17 +08:00
2024-03-01 14:21:17 +08:00
2024-02-03 20:24:39 +08:00
2024-04-10 11:42:19 +08:00
2024-04-10 11:42:19 +08:00
2024-01-12 11:57:16 +08:00
2023-12-28 14:57:31 +08:00
2024-05-10 14:35:47 +08:00
2024-05-28 18:52:34 +08:00
2024-05-08 09:11:22 +08:00
2024-03-29 17:47:51 +08:00
2024-04-19 23:41:37 +08:00
2024-04-30 07:26:23 +08:00
2024-03-22 08:16:30 +08:00
2024-05-14 09:10:09 +08:00
2024-03-22 08:16:30 +08:00
2024-03-22 08:16:30 +08:00
2023-12-27 23:43:43 +08:00
2024-04-26 07:44:12 +08:00
2024-03-12 14:12:09 +08:00
2023-11-15 21:34:49 +08:00
2023-11-24 16:37:30 +08:00
2023-11-24 16:37:30 +08:00
2024-03-01 14:21:17 +08:00
2024-03-01 14:21:17 +08:00
2024-01-24 10:00:25 +08:00
2024-05-20 15:43:46 +08:00
2024-05-11 11:20:10 +08:00
2024-05-14 09:10:09 +08:00
2024-05-11 11:20:10 +08:00
2024-03-09 19:44:42 +08:00
2024-01-06 21:17:22 +08:00
2024-04-30 07:26:23 +08:00
2023-12-27 23:43:43 +08:00
2024-04-10 11:34:29 +08:00
2024-04-19 23:41:37 +08:00
2024-05-07 18:23:43 +08:00
2024-05-07 18:23:43 +08:00
2024-05-18 18:29:59 +08:00
2023-10-26 17:33:28 +08:00
2023-10-25 15:47:51 +08:00
2024-02-03 20:24:39 +08:00
2024-04-19 23:41:37 +08:00
2024-03-15 17:57:58 +08:00
2024-03-15 17:57:58 +08:00
2024-03-19 17:28:59 +08:00
2024-04-19 23:41:37 +08:00
2024-05-22 00:53:34 +08:00
2024-01-31 23:53:40 +08:00
2024-05-22 09:53:45 +08:00
2024-04-10 11:42:19 +08:00
2024-05-22 00:53:34 +08:00
2024-05-11 11:20:10 +08:00
2024-05-22 00:53:34 +08:00
2024-05-22 00:53:34 +08:00
2024-04-29 10:51:19 +08:00
2023-11-24 16:37:30 +08:00
2024-02-03 20:24:39 +08:00
2024-02-03 20:24:39 +08:00
2024-04-30 07:26:23 +08:00
2024-03-12 14:12:09 +08:00
2023-12-19 15:54:19 +08:00
2024-05-28 15:57:54 +08:00
2024-01-12 11:36:58 +08:00
2024-01-12 11:36:58 +08:00
2024-04-10 11:42:19 +08:00
2024-05-06 12:53:11 +08:00
2024-02-26 23:39:10 +08:00
2023-12-26 17:18:41 +08:00
2024-05-20 15:43:46 +08:00
2023-11-15 21:34:49 +08:00
2024-03-22 08:52:12 +08:00
2024-03-22 08:52:12 +08:00
2024-04-10 11:42:19 +08:00
2023-11-28 13:02:30 +08:00
2023-11-28 13:02:30 +08:00
2024-03-09 19:44:42 +08:00
2024-03-09 19:44:42 +08:00
2024-05-22 09:53:45 +08:00
2023-12-08 14:50:36 +08:00
2024-05-18 18:29:59 +08:00
2024-05-18 18:29:59 +08:00
2024-04-17 23:42:13 +08:00
2024-04-19 22:57:25 +08:00
2024-03-09 19:44:42 +08:00
2024-03-09 19:44:42 +08:00
2024-05-24 16:23:58 +08:00
2024-05-24 16:23:58 +08:00
2023-11-28 13:02:30 +08:00
2024-02-29 12:38:03 +08:00
2023-11-28 13:02:30 +08:00
2024-05-06 21:00:34 +08:00
2024-04-19 23:30:25 +08:00
2024-04-17 23:42:12 +08:00
2024-04-11 08:35:13 +08:00
2024-04-30 09:52:41 +08:00
2024-05-11 15:04:35 +08:00
2023-12-07 10:06:31 +08:00
2023-10-18 20:29:04 +08:00
2024-05-28 15:57:54 +08:00
2024-03-22 15:38:58 +08:00
2024-04-10 11:34:30 +08:00
2024-04-10 11:34:30 +08:00
2024-04-10 14:53:56 +08:00
2024-04-10 11:34:30 +08:00
2024-05-10 14:35:47 +08:00
2024-03-15 18:06:15 +08:00
2024-03-15 17:57:58 +08:00
2024-03-15 17:57:58 +08:00
2024-05-21 12:58:38 +08:00
2024-05-21 12:58:38 +08:00
2024-05-26 17:15:09 +08:00
2024-05-26 17:15:09 +08:00
2024-03-15 17:57:58 +08:00
2024-03-15 17:57:58 +08:00
2023-11-09 18:05:34 +08:00
2024-05-10 14:43:46 +08:00
2024-02-05 22:00:24 +08:00
2024-05-18 18:29:59 +08:00
2023-09-29 22:38:52 +08:00
2023-09-29 22:38:52 +08:00
2023-12-25 10:45:19 +08:00
2023-12-25 10:45:19 +08:00