mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-06 21:48:58 +00:00
* feat(mito): add per-region write buffer limit Signed-off-by: evenyag <realevenyag@gmail.com> * feat(mito): add default region write buffer size Signed-off-by: evenyag <realevenyag@gmail.com> * docs: expand configuration change checklist Signed-off-by: evenyag <realevenyag@gmail.com> * test: cover table write buffer size option Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito): refine region write buffer checks Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito): keep region-stalled writes queued Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito): allow zero region write buffer size Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito): validate region state before write stall Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito): reject writes beyond region hard limit Signed-off-by: evenyag <realevenyag@gmail.com> * docs: update example Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: evenyag <realevenyag@gmail.com>
25 lines
776 B
SQL
25 lines
776 B
SQL
DESC TABLE information_schema.region_info;
|
|
|
|
CREATE TABLE region_info_case (
|
|
a INT PRIMARY KEY,
|
|
ts TIMESTAMP TIME INDEX,
|
|
)
|
|
WITH ("sst_format" = "flat");
|
|
|
|
INSERT INTO region_info_case VALUES (1, 1), (2, 2);
|
|
|
|
ADMIN FLUSH_TABLE('region_info_case');
|
|
|
|
-- SQLNESS REPLACE (\s+\d+\s+) <NUM>
|
|
-- SQLNESS REPLACE (\{.*\}) <JSON>
|
|
-- SQLNESS REPLACE (-{40,}) ----------------
|
|
-- SQLNESS REPLACE (region_options\s+\|) region_options |
|
|
SELECT region_id, state, role, writable, committed_sequence, flushed_sequence, manifest_version, compaction_time_window, region_options, sst_format
|
|
FROM information_schema.region_info
|
|
WHERE region_id IN (
|
|
SELECT region_id FROM information_schema.region_peers WHERE table_name = 'region_info_case'
|
|
)
|
|
ORDER BY region_id;
|
|
|
|
DROP TABLE region_info_case;
|