Yingwen
0939dc1d32
test: run sqlness for flat format ( #7178 )
...
* test: support flat format in sqlness
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: replace region stats test result with NUM
Signed-off-by: evenyag <realevenyag@gmail.com >
* ci: add flat format to sqlness ci
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2025-11-05 11:23:12 +00:00
liyang
e595885dc6
chore: use greptime dockerhub image ( #6865 )
...
Signed-off-by: liyang <daviderli614@gmail.com >
2025-09-01 11:07:26 +00:00
liyang
7bc669e991
chore: update bitnami config ( #6847 )
...
* chore: update bitnami config
Signed-off-by: liyang <daviderli614@gmail.com >
* update postgresql chart version
Signed-off-by: liyang <daviderli614@gmail.com >
* fix ci
Signed-off-by: liyang <daviderli614@gmail.com >
* refactor: add pull-test-deps-images.sh to pull images one by one to avoid rate limit
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: liyang <daviderli614@gmail.com >
Signed-off-by: zyy17 <zyylsxm@gmail.com >
Co-authored-by: zyy17 <zyylsxm@gmail.com >
2025-08-29 02:45:14 +00:00
discord9
d774996e89
chore: make internal grpc optional ( #6789 )
...
* chore: make internal grpc optional
Signed-off-by: discord9 <discord9@163.com >
* revert sqlness runner too
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-08-22 04:22:49 +00:00
discord9
eaceae4c91
feat: frontend internal grpc port ( #6784 )
...
* feat: frontend internal grpc port
Signed-off-by: discord9 <discord9@163.com >
* fix: grpc server naming
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness test fix
Signed-off-by: discord9 <discord9@163.com >
* fix: internal not use process manager
Signed-off-by: discord9 <discord9@163.com >
* test: test integration port alloc
Signed-off-by: discord9 <discord9@163.com >
* feat: skip auth for internal grpc
Signed-off-by: discord9 <discord9@163.com >
* test: is distributed
Signed-off-by: discord9 <discord9@163.com >
* what:
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
Co-authored-by: Ning Sun <sunning@greptime.com >
2025-08-22 02:46:35 +00:00
Weny Xu
896d72191e
feat: introduce PersistStatsHandler ( #6777 )
...
* feat: add `Inserter` trait and impl
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: import items
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: introduce `PersistStatsHandler`
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: disable persisting stats in sqlness
Signed-off-by: WenyXu <wenymedia@gmail.com >
* reset channel manager
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: avoid to collect
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: remove insert options
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: use `write_bytes` instead of `write_bytes_per_sec`
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: compute write bytes delta
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: add unit tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* Update src/meta-srv/src/handler/persist_stats_handler.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-08-21 09:34:58 +00:00
sunheyi
d03f85287e
feat: mysql add prepared_stmt_cache_capacity ( #6639 )
...
* feat: your clear and concise commit message
Signed-off-by: sunheyi <1061867552@qq.com >
* fix error
Signed-off-by: sunheyi <1061867552@qq.com >
* add param
Signed-off-by: sunheyi <1061867552@qq.com >
* fix
Signed-off-by: sunheyi <1061867552@qq.com >
* fix doc error
Signed-off-by: sunheyi <1061867552@qq.com >
---------
Signed-off-by: sunheyi <1061867552@qq.com >
2025-08-14 08:19:10 +00:00
Ruihang Xia
56e696bd55
chore: remove stale wal config entries ( #6134 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-05-20 19:42:09 +00:00
discord9
a0900f5b90
feat(flow): use batching mode&fix sqlness ( #5903 )
...
* feat: use flow batching engine
broken: try using logical plan
fix: use dummy catalog for logical plan
fix: insert plan exec&sqlness grpc addr
feat: use frontend instance in flownode in standalone
feat: flow type in metasrv&fix: flush flow out of sync& column name alias
tests: sqlness update
tests: sqlness flow rebuild udpate
chore: per review
refactor: keep chnl mgr
refactor: use catalog mgr for get table
tests: use valid sql
fix: add more check
refactor: put flow type determine to frontend
* chore: update proto
* chore: update proto to main branch
* fix: add locks for create/drop flow&docs: update docs
* feat: flush_flow flush all ranges now
* test: add align time window test
* docs: explain `nodeid` use in check task
* refactor: AddAutoColumnRewriter check for Projection
* refactor: per review
* fix: query without time window also clean dirty time window
* chore: better logging
* chore: add comments per review
* refactor: per review
* chore: per review
* chore: per review rename args
* refactor: per review partially
* chore: update docs
* chore: use better error variant
* chore: better error variant
* refactor: rename FlowWorkerManager to FlowStreamingEngine
* rename again
* refactor: per review
* chore: rebase after #5963 merged
* refactor: rename all flow_worker_manager occurs
* docs: rm resolved TODO
2025-04-23 15:12:16 +00:00
Yuhan Wang
ee07b9bfa8
test: update configs to enable auto wal prune ( #5938 )
...
* test: update configs to enable auto wal prune
* fix: add humantime_serde
* fix: enable overwrite_entry_start_id
* fix: not in metasrv
* chore: update default value name
* Apply suggestions from code review
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
* fix: kafka use overwrite_entry_start_id
---------
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
2025-04-21 07:57:43 +00:00
Yuhan Wang
e817a65d75
feat: enable submitting wal prune procedure periodically ( #5867 )
...
* feat: enable submitting wal prune procedure periodically
* chore: fix and add options
* test: add unit test
* test: fix unit test
* test: enable active_wal_pruning in test
* test: update default config
* chore: update config name
* refactor: use semaphore to control the number of prune process
* refactor: use split client for wal prune manager and topic creator
* chore: add configs
* chore: apply review comments
* fix: use tracker properly
* fix: use guard to track semaphore
* test: update unit tests
* chore: update config name
* chore: use prunable_entry_id
* refactor: semaphore to only limit the process of submitting
* chore: remove legacy sort
* chore: better configs
* fix: update config.md
* chore: respect fmt
* test: update unit tests
* chore: use interval_at
* fix: fix unit test
* test: fix unit test
* test: fix unit test
* chore: apply review comments
* docs: update config docs
2025-04-18 16:02:33 +00:00
Ruihang Xia
d7b6718be0
feat: run sqlness in parallel ( #5499 )
...
* define server mode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* bump sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* all good
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor: Move config generation logic from Env to ServerMode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finalize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* override parallelism
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename more variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-21 07:05:19 +00:00
jeremyhi
fac22575aa
refactor!: unify the option names across all components ( #5457 )
...
* refactor: rename grpc options
* refactor: make the arg clearly
* chore: comments on server_addr
* chore: fix test
* chore: remove the store_addr alias
* refactor: cli option rpc_server_addr
* chore: keep store-addr alias
* chore: by comment
2025-02-06 06:37:14 +00:00
Weny Xu
7f307a4cac
feat: auto detecting local IP to use as hostname ( #5314 )
...
* feat: auto detecting hostname
* chore: update config.md
* chore: bring back hostname
* chore: apply suggestions from CR
* chore: use const
* chore: apply suggesions from CR
* fix: fix sqlness
2025-01-08 12:06:31 +00:00
discord9
421088a868
test: sqlness upgrade compatibility tests ( #5126 )
...
* feat: simple version switch
* chore: remove debug print
* chore: add common folder
* tests: add drop table
* feat: pull versioned binary
* chore: don't use native-tls
* chore: rm outdated docs
* chore: new line
* fix: save old bin dir
* fix: switch version restart all node
* feat: use etcd
* fix: wait for election
* fix: normal sqlness
* refactor: hashmap for bin dir
* test: past 3 major version compat crate table
* refactor: allow using without setup etcd
2024-12-17 07:00:02 +00:00
jeremyhi
9405d1c578
feat: heartbeat_flush_threshold option ( #4924 )
...
* feat: heartbeat_flush_threshold
* chore: rename to flush_stats_factor
* Update src/meta-srv/src/handler/collect_stats_handler.rs
2024-11-04 03:34:50 +00:00
dennis zhuang
dcc08f6b3e
feat: adds the number of rows and index files size to region_statistics table ( #4909 )
...
* feat: adds index size to region statistics
* feat: adds the number of rows for region statistics
* test: adds sqlness test for region_statistics
* fix: test
2024-10-30 11:12:58 +00:00
Ning Sun
4dea4cac47
refactor: change sqlness ports to avoid conflict with local instance ( #4794 )
2024-10-08 07:33:24 +00:00
JohnsonLee
47a3277d12
feat: customize channel information for sqlness tests ( #4729 )
...
* feat: add pg and mysql server_address options
* feat: start pg and mysql server(standalone)
* feat: start pg and mysql in distribute
* feat: finally get there, specify postgres sqlness
* feat: support mysql sqlness
* fix: license
* fix: remove unused import
* fix: toml
* fix: clippy
* refactor: BeginProtocolInterceptorFactory to ProtocolInterceptorFactory
* fix: sqlness pg connect
* fix: clippy
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: rustfmt
* fix: reconnect pg and mysql when restart
* test: add mysql related sqlness
* fix: wait for start while restarting
* fix: clippy
* fix: cargo lock conflict
fix: Cargo.lock conflict
* fix: usage of '@@tx_isolation' in sqlness
* fix: typos
* feat: retry with backoff when create client
* fix: use millisecond rather than microseconds in backoff
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-10-04 09:26:57 +00:00
discord9
f88705080b
chore: set topic to 3 for sqlness test ( #4560 )
2024-08-14 06:32:26 +00:00
Ruihang Xia
b00b49284e
feat: manager kafka cluster in sqlness runner ( #3143 )
...
* feat: manager kafka cluster in sqlness runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* pull up clippy config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: niebayes <niebayes@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: niebayes <niebayes@gmail.com >
2024-01-11 09:47:19 +00:00
Weny Xu
e16f093282
test(remote_wal): add sqlness with kafka wal ( #3027 )
...
* feat(sqlness): add kafka wal config
* chore: add sqlness with kafka wal ci config
* fix: fix config
* chore: apply suggestions from CR
* fix: add metasrv config to sqlness with kafka
* fix: replay memtable should from flushed_entry_id + 1
* fix: should set append flag to fopen
* feat: start wal allocator in standalone meta mode
* feat: append a noop record after kafka topic initialization
* test: ignore tests temporally
* test: change sqlness kafka wal config
2023-12-29 08:17:22 +00:00
niebayes
830a91c548
feat(remote_wal): implement topic allocation ( #2970 )
...
* chore: implement wal options allocator
* chore: implement round-robin topic selector
* feat: add shuffle to round-robin topic selector
* chore: implement kafka topic manager
* test: add tests for wal options allocator
* test: add wal provider to test config files
* test: leave todos for adding tests for remote wal
* fix: resolve review conversations
* fix: typo
2023-12-22 08:26:48 +00:00
Ruihang Xia
4d478658b5
fix: pass datanode config file in distributed mode sqlness ( #2631 )
...
* fix: pass datanode config file in distributed mode sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-20 10:57:23 +00:00
Ruihang Xia
34d6288945
feat: bring back sqlness and integration tests ( #2448 )
...
* enable integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable sqlness region failover
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enable sqlness in CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort unstable result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* set require_lease_before_startup to true
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix inconsistent cache
* replace windows path chars
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore some integration cases in windows
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Revert "ignore some integration cases in windows"
This reverts commit 122478b7c1 .
* disable windows for now
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix close region bug in RegionHeartbeatResponseHandler
* disable failover tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2023-09-20 09:17:30 +00:00
Weny Xu
43476e1ff9
refactor: rename coordination to require_lease_before_startup ( #2431 )
2023-09-18 11:07:42 +00:00
Weny Xu
2c3ff90dbc
feat: start services after first heartbeat response processed ( #2424 )
...
* feat: start services after first heartbeat response processed
* refactor: watch changes in RegionAliveKeeper
* feat: add coordination to DatanodeOptions
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: enable coordination in sqlness
2023-09-18 08:49:26 +00:00
dennis zhuang
7c55783e53
feat!: reorganize the storage layout ( #1609 )
...
* feat: adds data_home to DataOptions
* refactor: split out object store stuffs from datanode instance
* feat: move data_home into FileConfig
* refactor: object storage layers
* feat: adds datanode path to procedure paths
* feat: temp commit
* refactor: clean code
* fix: forgot files
* fix: forgot files
* Update src/common/test-util/src/ports.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update tests/runner/src/env.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: compile error
* chore: cr comments
* fix: dependencies order in cargo
* fix: data path in test
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-05-23 13:58:26 +08:00
Yingwen
eb50cee601
feat: Switch to the procedure framework ( #1448 )
...
* feat: Remove create_mock_sql_handler()
create_to_request() and alter_to_request() don't need `&self`, so
we don't need to mock the sql handler to test them
* feat: Enable procedure manager by default
* docs: Update config example
* test: Enable procedure framework in all tests
* refactor(datanode): rename methods using procedure
* test(catalog): Fix temp dir drops before test finishes
* tests: Enable procedure framework in sqlness
* test: Fix sqlness standalone rename test
* fix: Drop procedure allows table not in engine
* test: Change rename table test
* fix: add options to table meta when creating table by procedure
* test: adjust error message in schema test case
* test: Fix test_sql_api error message
2023-04-25 12:04:02 +08:00
Yingwen
f6e871708a
chore: Rename MetaClientOpts to MetaClientOptions ( #1075 )
...
* fix: Serialize FrontendOptions to toml
* fix: Serialize DatanodeOptions to toml
* fix: Serialize StandaloneOptions to toml
See https://users.rust-lang.org/t/why-toml-to-string-get-error-valueaftertable/85903/2
* chore!: Rename MetaClientOpts to MetaClientOptions
BREAKING CHANGE: Change the meta_client_opts in the config file to
meta_client_options
2023-02-24 16:28:38 +08:00
LFC
9ad6c45913
test: Sqlness tests for distribute mode ( #979 )
...
* test: Sqlness tests for distribute mode
* ci
* fix: resolve PR comments
* fix: resolve PR comments
2023-02-14 10:24:09 +08:00
LFC
af935671b2
feat: support "use" in GRPC requests ( #922 )
...
* feat: support "use catalog and schema"(behave like the "use" in MySQL) in GRPC requests
* fix: rebase develop
2023-02-02 20:02:56 +08:00