mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 12:44:10 +00:00
* feat(mito): model authoritative Narthex artifact inventories Signed-off-by: evenyag <realevenyag@gmail.com> * feat(mito): track authoritative series indexes through manifest replay and SST versions Signed-off-by: evenyag <realevenyag@gmail.com> * feat(mito): reclaim Narthex artifacts through file references and GC Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): append format to FileMeta Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): store canonical Narthex part sizes inline Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): put format last in SST metadata constructors Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): centralize region edit file change detection Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): represent Narthex parts as metadata records Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): defer Narthex coverage validation at publication Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito): decouple series index removal from sample edits Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito): support Narthex region edits and simplify cleanup Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: evenyag <realevenyag@gmail.com>
113 lines
2.8 KiB
JSON
113 lines
2.8 KiB
JSON
{
|
|
"actions": [
|
|
{
|
|
"Edit": {
|
|
"files_to_add": [
|
|
{
|
|
"region_id": 98784247841,
|
|
"file_id": "4b220a70-2b03-4641-9687-b65d94641201",
|
|
"time_range": [
|
|
{
|
|
"value": 0,
|
|
"unit": "Millisecond"
|
|
},
|
|
{
|
|
"value": 10,
|
|
"unit": "Millisecond"
|
|
}
|
|
],
|
|
"level": 0,
|
|
"file_size": 30,
|
|
"num_rows": 2,
|
|
"num_series": 1,
|
|
"sequence": 7,
|
|
"format": {
|
|
"narthex_samples": {
|
|
"manifest_size": 10,
|
|
"parts": [
|
|
{
|
|
"file_size": 20
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"region_id": 98784247841,
|
|
"file_id": "4b220a70-2b03-4641-9687-b65d94641202",
|
|
"time_range": [
|
|
{
|
|
"value": 0,
|
|
"unit": "Millisecond"
|
|
},
|
|
{
|
|
"value": 10,
|
|
"unit": "Millisecond"
|
|
}
|
|
],
|
|
"level": 0,
|
|
"file_size": 30,
|
|
"num_rows": 2,
|
|
"num_series": 1,
|
|
"sequence": 7,
|
|
"format": {
|
|
"narthex_samples": {
|
|
"manifest_size": 10,
|
|
"parts": [
|
|
{
|
|
"file_size": 20
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"files_to_remove": [],
|
|
"series_indexes_to_add": [
|
|
{
|
|
"region_id": 98784247841,
|
|
"file_id": "4b220a70-2b03-4641-9687-b65d94641203",
|
|
"time_range": [
|
|
{
|
|
"value": 0,
|
|
"unit": "Millisecond"
|
|
},
|
|
{
|
|
"value": 10,
|
|
"unit": "Millisecond"
|
|
}
|
|
],
|
|
"level": 0,
|
|
"file_size": 40,
|
|
"num_rows": 0,
|
|
"num_series": 1,
|
|
"sequence": 7,
|
|
"format": {
|
|
"narthex_series_index": {
|
|
"sources": [
|
|
{
|
|
"region_id": 98784247841,
|
|
"file_id": "4b220a70-2b03-4641-9687-b65d94641201"
|
|
},
|
|
{
|
|
"region_id": 98784247841,
|
|
"file_id": "4b220a70-2b03-4641-9687-b65d94641202"
|
|
}
|
|
],
|
|
"manifest_size": 10,
|
|
"parts": [
|
|
{
|
|
"file_size": 30
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"series_indexes_to_remove": [],
|
|
"compaction_time_window": null
|
|
}
|
|
}
|
|
]
|
|
}
|