Lei, HUANG
0cf25f7b05
feat: add sst file num in region stat ( #6537 )
...
* feat/add-sst-file-num-in-region-stat:
### Add SST File Count to Region Statistics
- **Enhancements**:
- Added `sst_num` to track the number of SST files in region statistics across multiple modules.
- Updated `RegionStat` and `RegionStatistic` structs in `datanode.rs` and `region_engine.rs` to include `sst_num`.
- Modified `MitoRegion` and `SstVersion` in `region.rs` and `version.rs` to compute and return the number of SST files.
- Adjusted test cases in `collect_leader_region_handler.rs`, `failure_handler.rs`, `region_lease_handler.rs`, and `weight_compute.rs` to initialize `sst_num`.
- Updated `get_region_statistic` in `utils.rs` to sum `sst_num` from metadata and data statistics.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* feat/add-sst-file-num-in-region-stat:
Add `sst_num` to `region_statistics`
- Updated `region_statistics.rs` to include a new constant `SST_NUM` and added it to the schema and builder structures.
- Modified `information_schema.result` to reflect the addition of `sst_num` in the `region_statistics` table.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2025-07-17 17:36:20 +00:00
zyy17
e5e10fd362
refactor: add the active_frontends() in PeerLookupService ( #6504 )
...
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2025-07-11 09:42:00 +00:00
LFC
2f765c8fd4
refactor: remove unnecessary args ( #6493 )
...
* x
Signed-off-by: luofucong <luofc@foxmail.com >
* refactor: remove unnecessary args
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2025-07-09 13:23:15 +00:00
LFC
c2f1447345
refactor: stores the http server builder in Metasrv instance ( #6461 )
...
* refactor: stores the http server builder in Metasrv instance
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2025-07-07 06:39:05 +00:00
Weny Xu
7d17782fd5
feat: persist column ids in table metadata ( #6457 )
...
* feat: persist column ids in table metadata
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-07-04 08:12:29 +00:00
zyy17
645988975e
refactor: add RegionMigrationTriggerReason in RegionMigrationProcedureTask ( #6413 )
...
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2025-06-30 11:16:41 +00:00
fys
524bdfff22
fix: add cfg for DecodeSqlValue error ( #6420 )
2025-06-28 01:39:06 +00:00
Weny Xu
5fcb97724f
chore: correct typo in configuration ( #6411 )
...
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-27 07:55:13 +00:00
Weny Xu
4737285275
feat: implement pause/resume functionality for procedure manager ( #6393 )
...
* feat: implement pause/resume functionality for procedure manager
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-26 01:57:12 +00:00
fys
cde7e11983
refactor: avoid adding feature to parameter ( #6391 )
...
* refactor: avoid adding feature to parameter
* avoid `cfg(not(feature = ...))` block
2025-06-25 10:47:20 +00:00
Weny Xu
24019334ee
feat: implement automatic region failure detector registrations ( #6370 )
...
* feat: implement automatic region failure detector registrations
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: remove unused error
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: add more tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: add `region_failure_detector_initialization_delay` option
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update config.md
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update config.md
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-24 06:12:12 +00:00
Yingwen
39d3e0651d
feat: Support ListMetadataRequest to retrieve regions' metadata ( #6348 )
...
* feat: support list metadata in region server
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: add test for list region metadata
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: return null if region not exists
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: update greptime-proto
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2025-06-23 07:11:20 +00:00
Weny Xu
89e3c8edab
fix(meta): enhance mysql election client with timeouts and reconnection ( #6341 )
...
* fix(meta): enhance mysql election client with timeouts and reconnection
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: improve MySQL election client lease management and error handling
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: adjust timeout configurations for election clients
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: remove unused error
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix: fix unit test
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-19 12:44:23 +00:00
LFC
6da8e00243
refactor: make finding leader in metasrv client dynamic ( #6343 )
...
Signed-off-by: luofucong <luofc@foxmail.com >
2025-06-18 11:29:23 +00:00
fys
3e3a12385c
refactor: make flownode gRPC services able to be added dynamically ( #6323 )
...
chore: enhance the flownode gRPC servers extension
2025-06-17 06:27:41 +00:00
jeremyhi
12648f388a
feat: refactor grpc options of metasrv ( #6275 )
...
* feat: refactor grpc options of metasrv
* fix: unit test
* feat: config update
2025-06-10 01:35:57 +00:00
Weny Xu
2979aa048e
fix(meta): enhance postgres election client with timeouts and reconnection ( #6276 )
...
* fix(meta): enhance postgres election client with timeouts and reconnection
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-09 13:51:13 +00:00
zyy17
fdf32a8f46
refactor: respect data_home as root data home directory ( #6050 )
...
* refactor: initialize logging dir by using data_home
* chore: remove tail '/' for dir name
2025-06-09 02:31:21 +00:00
discord9
0bd8856e2f
chore: pub flow info ( #6253 )
...
* chore: make all flow info's field public
* chore: expose flow_route
* chore: more pub
2025-06-05 12:34:11 +00:00
discord9
0b9af77fe9
chore: test sleep longer ( #6247 )
...
* chore: test sleep longer
* win timer resolution is 15.6ms, need longer
2025-06-04 08:18:44 +00:00
fys
9cd4a2c525
feat: add trigger ddl manager ( #6228 )
...
* feat: add trigger ddl manager
* chore: reduce the number of cfg feature code blocks
* upgrade greptime-proto
* chore: upgrade greptime-proto
2025-06-04 06:38:02 +00:00
Yuhan Wang and jeremyhi
083c22b90a
refactor: extract some common functions and structs in election module ( #6172 )
...
* refactor: extract some common functions and structs in election module
* chore: add comments and modify a function name
* chore: add comments and modify a function name
* fix: missing 2 lines in license header
* fix: acqrel
* chore: apply comment suggestions
* Update src/meta-srv/src/election.rs
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
---------
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
2025-06-03 11:31:30 +00:00
Weny Xu
1d7ae66e75
fix: remove stale region failover detectors ( #6221 )
...
* fix: remove stale region failover detectors
* fix: fix unit tests
2025-05-30 10:27:06 +00:00
localhost and WenyXu
886c2dba76
chore: fix rds kv backend test ( #6214 )
...
* chore: fix rds kv backend test
* Revert "chore: fix rds kv backend test"
This reverts commit 9b5b6bacc0 .
* chore: introduce helper macro
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2025-05-29 09:12:31 +00:00
Weny Xu
5e9b5d981f
chore: fix feature gates for pg and mysql kvbackend ( #6211 )
2025-05-29 03:58:06 +00:00
jeremyhi
aca7ad82b1
chore: correct some CAS ordering args ( #6200 )
...
chore: corect some CAS ordering args
2025-05-28 09:21:46 +00:00
localhost
92422dafca
feat: add CLI tool to export metadata ( #6150 )
...
* chore: add tool to export db meta
* chore: add meta restore command
* chore: fmt code
* chore: remove useless error
* chore: support key prefix
* chore: add clean check for meta restore
* chore: add more log for meta restore
* chore: resolve s3 and local file root in command meta-snapshot
* chore: remove the pg mysql features from the build script as they are already in the default feature
* chore: fix by pr comment
2025-05-28 03:18:00 +00:00
discord9
3901863432
chore: metasrv starting not blocking ( #6158 )
...
* chore: metasrv starting not blocking
* chore: fmt
* chore: expose actual bind_addr
2025-05-23 09:53:42 +00:00
shuiyisong
b2377d4b87
chore: update toolchain to 2025-05-19 ( #6124 )
...
* chore: update toolchain to 2025-05-19
* chore: update nix sha
* chore: rebase main and fix
2025-05-20 04:29:40 +00:00
Weny Xu
864cc117b3
fix: append noop entry when auto topic creation is disabled ( #6092 )
...
* feat: improve topic management and add stale records cleanup
* fix: fix unit tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2025-05-16 11:26:47 +00:00
Weny Xu
1f62c3b545
fix: table metadata collection ( #6102 )
...
fix: fix collect metadata
2025-05-14 12:19:54 +00:00
Weny Xu
29540b55ee
feat(meta): add pusher deregister signal to mailbox receiver ( #6072 )
2025-05-13 08:04:43 +00:00
Weny Xu
8dca448baf
feat: add datanode workloads support ( #6055 )
...
* feat: add datanode workload type support
* refactor: enhance datanode lease filtering with mode conditions
* chore: update config.md
* fix: fix clippy
* chore: apply suggestions from CR
* feat: add feature gate
* fix: fmt and clippy
* refactor: minor refactor
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: minior refactor
* test: fix unit test
2025-05-09 10:16:21 +00:00
LFC
4b5ab75312
refactor: remove some async in ServerHandlers ( #6057 )
...
* refactor: remove some async in ServerHandlers
* address PR comments
2025-05-07 03:57:16 +00:00
Weny Xu
df31f0b9ec
fix: improve region migration error handling and optimize leader downgrade with lease check ( #6026 )
...
* fix(meta): improve region migration error handling and lease management
* chore: refine comments
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* feat: consume opening_region_guard
2025-05-07 00:54:35 +00:00
Weny Xu
8726bf9f7a
feat(meta): enhance region lease handling with operating status ( #6027 )
...
* feat(meta): enhance region lease handling with operating status
* test: adjust flush metadata region test
2025-04-30 13:00:34 +00:00
Weny Xu
0bf07d7f91
feat: optimize region migration concurrency with fine-grained table lock ( #6023 )
...
* feat(procedure): add dynamic key locking mechanism
* feat: optimize region migration concurrency with fine-grained table lock
* chore: apply suggestions from CR
2025-04-30 06:45:03 +00:00
Weny Xu
8338aa14d3
feat: enhance maintenance mode API and handling ( #6022 )
...
* feat(meta): enhance maintenance mode API and handling
* chore: apply suggestions from CR
2025-04-29 11:39:28 +00:00
Weny Xu
a3ae2d7b52
feat: flush leader region before downgrading ( #5995 )
...
* feat: flush leader region before downgrading
* test: add unit tests
* chore: apply suggestions from CR
2025-04-29 03:28:00 +00:00
jeremyhi
133f404547
fix: sanitize_connection_string ( #6012 )
2025-04-28 13:56:26 +00:00
Weny Xu
13ac4d5048
fix: only consider the datanode that reports the failure ( #6004 )
...
* fix: only consider the datanode that reports the failure
* chore: fix clippy
2025-04-28 06:08:02 +00:00
Weny Xu
5ed0a095b6
feat: introduce RegionStatAwareSelector trait ( #5990 )
...
* feat: introduce `RegionStatAwareSelector`
* feat: exclude all failed datanodes
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2025-04-27 11:22:39 +00:00
shuiyisong and Ning Sun
3c943be189
chore: update rust toolchain ( #5818 )
...
* chore: update nightly version
* chore: sort lint lines
* chore: minor fix
* chore: update nix
* chore: update toolchain to 2024-04-14
* chore: update toolchain to 2024-04-15
* chore: remove unnecessory test
* chore: do not assert oid in sqlness test
* chore: fix margin issue
* chore: fix cr issues
* chore: fix cr issues
---------
Co-authored-by: Ning Sun <sunning@greptime.com >
2025-04-27 09:02:36 +00:00
Weny Xu
e30753fc31
feat: allow forced region failover for local WAL ( #5972 )
...
* feat: allow forced region failover for local WAL
* chore: upgrade config.md
* chore: apply suggestions from CR
2025-04-24 08:11:45 +00:00
Weny Xu
ff3a46b1d0
feat: improve observability of region migration procedure ( #5967 )
...
* feat: improve observability of region migration procedure
* chore: apply suggestions from CR
* chore: observe non-zero value
2025-04-24 04:00:14 +00:00
Weny Xu
a533ac2555
feat: enhance selector with node exclusion support ( #5966 )
2025-04-24 02:27:27 +00:00
Weny Xu
f3d000f6ec
feat: track region failover attempts and adjust timeout ( #5952 )
2025-04-23 18:19:18 +00:00
discord9
9557b76224
fix: try prune one less ( #5965 )
...
* try prune one less
* test: also not add one
* ci: use longer fuzz time
* revert fuzz time&per review
* chore: no (
* docs: add explain to offset used in delete records
* test: fix test_procedure_execution
2025-04-23 16:57:54 +00:00
LFC
71db79c8d6
feat: node excluder ( #5964 )
...
* feat: node excluder
* fix ci
* fix ci
2025-04-23 10:48:46 +00:00
Weny Xu
0f77135ef9
feat: add exclude_peer_ids to SelectorOptions ( #5949 )
...
* feat: add `exclude_peer_ids` to `SelectorOptions`
* chore: apply suggestions from CR
* fix: clippy
2025-04-22 07:49:22 +00:00