Weny Xu
83eb777d21
test: add fuzz test for metric region migration ( #4862 )
...
* test: add fuzz tests for migrate metric regions
* test: insert values before migrating metric region
* feat: correct table num
* chore: apply suggestions from CR
2024-10-29 15:47:48 +00:00
discord9
f3e5a5a7aa
ci: install numpy in CI ( #4895 )
...
chore: install numpy in CI
2024-10-29 07:57:40 +00:00
Ruihang Xia
03f2fa219d
feat: optimizer rule for windowed sort ( #4874 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement physical rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: install windowed sort physical rule and optimize partition ranges
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add logs and sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: introduce PartSortExec for partitioned sorting
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tune exec nodes' properties and metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* debug: add more info on very wrong
* debug: also print overlap ranges
* feat: add check when emit PartSort Stream
* dbg: info on overlap working range
* feat: check batch range is inside part range
* set distinguish partition range param
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: more logs
* update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tune optimizer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix windowed sort rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: early terminate sort stream
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: remove min/max check
* chore: remove unused windowed_sort module, uuid feature and refactor region_scanner to synchronous
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: print more fuzz log
* chore: more log
* fix: part sort should skip empty part
* chore: remove insert logs
* tests: empty PartitionRange
* refactor: testcase
* docs: update comment&tests: all empty
* ci: enlarge etcd cpu limit
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: discord9 <discord9@163.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2024-10-29 07:46:05 +00:00
Weny Xu
6e776d5f98
feat: support to reject write after flushing ( #4759 )
...
* refactor: use `RegionRoleState` instead of `RegionState`
* feat: introducing `RegionLeaderState::Downgrading`
* refactor: introduce `set_region_role_state_gracefully`
* refactor: use `set_region_role` instead of `set_writable`
* feat: support to reject write after flushing
* fix: fix unit tests
* test: add unit test for `should_reject_write`
* chore: add comments
* chore: refine comments
* fix: fix unit test
* test: enable fuzz tests for Local WAL
* chore: add logs
* chore: rename `RegionStatus` to `RegionState`
* feat: introduce `DowngradingLeader`
* chore: rename
* refactor: refactor `set_role_state` tests
* test: ensure downgrading region will reject write
* chore: enhance logs
* chore: refine name
* chore: refine comment
* test: add tests for `set_role_role_state`
* fix: fix unit tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-09-30 08:28:51 +00:00
discord9
0274e752ae
chore: make sure aws-lc-sys wouldn't be built ( #4767 )
...
* chore: make sure aws-lc-sys wouldn't be built
* fix: bash
* refactor: multiple line bash
2024-09-25 17:11:37 +00:00
liyang
1acda74c26
fix: cannot input tag for the dev-builder image ( #4743 )
2024-09-19 11:14:34 +00:00
Ruihang Xia
93f202694c
refactor: remove unused error variants ( #4666 )
...
* add python script
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix all negative cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* setup CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-03 13:19:38 +00:00
Weny Xu
b52e3c694a
chore(ci): set etcd resources limits ( #4665 )
2024-09-03 07:25:23 +00:00
zyy17
f0e2d6e663
fix: use 'target' for 'actions-rust-lang/setup-rust-toolchain' to fix cross build failed ( #4661 )
2024-09-02 06:11:12 +00:00
zyy17
ddafcc678c
ci: disable macos integration test and some minor refactoring ( #4658 )
2024-09-02 03:06:17 +00:00
zyy17
4ea412249a
ci: add check-builder-rust-version job in release and change release-dev-builder-images trigger condition ( #4615 )
2024-08-27 16:59:01 +00:00
Ning Sun
0b102ef846
ci: improve toolchain resolution in ci ( #4614 )
...
* ci: improve toolchain resolution in ci
* fix: yaml format
2024-08-27 07:46:51 +00:00
liyang
e404e9dafc
chore: setting docker authentication in dev-build image ( #4623 )
2024-08-27 03:49:53 +00:00
liyang
63a442632e
fix: failed to get version ( #4622 )
2024-08-26 15:33:30 +00:00
liyang
d39bafcfbd
fix: change toolchain file name ( #4621 )
2024-08-26 13:04:06 +00:00
liyang
1717445ebe
fix: failed to get github sha ( #4620 )
2024-08-26 11:42:07 +00:00
liyang
55d65da24d
ci: add push dev-build images to aws ecr ( #4618 )
...
* ci: add push dev-build images to aws ecr
* chore: use toolchain file generation dev-build image tag
* chore: change dev-build version
* Update .github/workflows/release-dev-builder-images.yaml
Co-authored-by: zyy17 <zyylsxm@gmail.com >
---------
Co-authored-by: zyy17 <zyylsxm@gmail.com >
2024-08-26 09:36:55 +00:00
Ruihang Xia
a3b8d2fe8f
chore: bump rust toolchain to 2024-08-21 ( #4606 )
...
* chore: bump rust toolchain to 2024-08-22
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update workflow
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* try 20240606
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-22 15:38:10 +00:00
Weny Xu
25cd61b310
chore: upgrade toolchain to nightly-2024-08-07 ( #4549 )
...
* chore: upgrade toolchain to `nightly-2024-08-07`
* chore(ci): upgrade toolchain
* fix: fix unit test
2024-08-22 11:02:18 +00:00
Weny Xu
8036b44347
chore: setup kafka before downloading binary step ( #4582 )
2024-08-19 06:44:33 +00:00
Lanqing Yang
93be81c041
feat: implement postgres kvbackend ( #4421 )
2024-08-14 22:49:32 +00:00
Weny Xu
2e2eacf3b2
feat: add SASL and TLS config for Kafka client ( #4536 )
...
* feat: add SASL and TLS config
* feat: add SASL/PLAIN and TLS config for Kafka client
* chore: use `ring`
* feat: support SASL SCRAM-SHA-256 and SCRAM-SHA-512
* fix: correct unit test
* test: add integration test
* chore: apply suggestions from CR
* refactor: introduce `KafkaConnectionConfig`
* chore: refine toml examples
* docs: add missing fields
* chore: refine examples
* feat: allow no server ca cert
* chore: refine examples
* chore: fix clippy
* feat: load system ca certs
* chore: fmt toml
* chore: unpin version
* Update src/common/wal/src/error.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-08-12 12:27:11 +00:00
Weny Xu
90cfe276b4
chore: upload kind logs ( #4544 )
2024-08-12 05:01:13 +00:00
LFC
a75cfaa516
chore: update snafu to make clippy happy ( #4507 )
...
* chore: update snafu to make clippy happy
* fix ci
2024-08-07 16:12:00 +00:00
Weny Xu
4a3982ca60
chore: use configData ( #4522 )
...
* chore: use `configData`
* chore: add an empty line
2024-08-07 07:43:04 +00:00
Yingwen
559219496d
ci: fix windows temp path ( #4518 )
2024-08-06 13:53:12 +00:00
LFC
685aa7dd8f
ci: squeeze some disk space for complex fuzz tests ( #4519 )
...
* ci: squeeze some disk space for complex fuzz tests
* Update .github/workflows/develop.yml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-08-06 11:52:34 +00:00
Weny Xu
79f10d0415
chore: reduce fuzz tests in CI ( #4505 )
2024-08-05 06:56:41 +00:00
Weny Xu
dd23d47743
chore(ci): bring back chaos tests ( #4456 )
...
* Revert "chore: temporarily disable fuzz chaos tests (#4457 )"
This reverts commit f0c953f84a .
* chore: update config
* Update .github/actions/setup-greptimedb-cluster/with-remote-wal.yaml
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-31 07:29:31 +00:00
Ruihang Xia
7daf24c47f
feat: remove dedicated runtime for grpc, mysql and pg protocols ( #4436 )
...
* feat: remove dedicated runtime for grpc, mysql and pg protocols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove other runtimes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* spawn compact task into compact_runtime
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine naming
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/tests/mysql/mysql_server_test.rs
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* turnoff fuzz test matrix fail fast option
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update rt config for ci tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-30 06:17:58 +00:00
Yingwen
78962015dd
ci: keep sqlness log by default ( #4449 )
...
* ci: keep sqlness log by default
* chore: not preserve state in makefile by default
* ci: use make
2024-07-29 17:11:24 +00:00
Weny Xu
f0c953f84a
chore: temporarily disable fuzz chaos tests ( #4457 )
2024-07-29 13:23:40 +00:00
Weny Xu
e39f49fe56
fix: ensure keep alive is completed in time ( #4349 )
...
* fix: ensure keep alive is completed in time
* chore: apply suggestions from CR
* chore: use write runtime
* refactor: set META_LEASE_SECS to 5
* chore: set etcd replicas to 1
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* fix: set `MissedTickBehavior::Delay`
* chore: apply suggestions from CR
2024-07-17 06:14:45 +00:00
Yingwen
d6c7b848da
chore: bump version to v0.9.0 ( #4376 )
...
* chore: bump version to v0.9.0
* chore: format
2024-07-16 07:50:45 +00:00
Weny Xu
08c415c729
ci: retry on error or timeout during installing operator ( #4308 )
...
chore(ci): retry on error or timeout during installing operator
2024-07-08 03:31:13 +00:00
Weny Xu
0b624dc337
ci: retry on error during installing operator ( #4295 )
...
chore(ci): retry on error during installing operator
2024-07-05 07:54:31 +00:00
Weny Xu
8a119aa0b2
feat: add naive region failover test for metric table ( #4269 )
...
* feat: add failover test for metric table
* chore: introduce help marco
* chore: remove incorrect check
2024-07-05 06:54:23 +00:00
Weny Xu
76fac359cd
feat: implement naive fuzz test for region migration ( #4252 )
...
* fix(fuzz): adapt for new partition rules
* feat: implement naive fuzz test for region migration
* chore(ci): add ci cfg
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-07-03 13:30:41 +00:00
zyy17
c9177cceeb
ci: push latest greptimedb nigthly build image ( #4260 )
2024-07-03 11:14:06 +00:00
Weny Xu
0f4b9e576d
chore(ci): add timeout (60min) for fuzz tests ( #4255 )
2024-07-03 03:36:43 +00:00
Weny Xu
352cc9ddde
test: add e2e test for region failover ( #4188 )
...
* test: add e2e test for region failover
* chore: add ci cfg
* chore: reduce parallelism to 8
* fix(ci): enable region failure
* chore: set sqlx LogLevel to Off
* refactor: move help functions to utils
2024-06-28 06:49:41 +00:00
Yingwen
f5ac158605
docs: remove outdated docs ( #4205 )
...
* docs: remove outdated docs
* ci: align ci
* chore: Revert "ci: align ci"
This reverts commit 2c3c0eed7e .
* ci: fix docs ci
2024-06-25 09:46:30 +00:00
Ruihang Xia
a1e2612bbf
fix: align workflows again for the troublesome GHA ( #4196 )
...
* fix: align workflows again for the troublesome GHA
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* unify
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-25 06:52:01 +00:00
Ruihang Xia
2faa6d6c97
ci: align docs with develop ( #4152 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-15 16:33:57 +00:00
Weny Xu
bf3ad44584
fix: fix release CI typo ( #4147 )
...
* fix: ci typo
* chore: use aws registry
2024-06-14 14:29:34 +00:00
Weny Xu
11a903f193
chore(ci): switch to aws registry ( #4145 )
...
chore: switch to aws registry
2024-06-14 11:46:57 +00:00
Weny Xu
acdfaabfa5
fix(ci): use ld_classic on macOS ( #4143 )
...
fix: use ld_classic on macos
2024-06-14 08:09:12 +00:00
Weny Xu
573e25a40f
chore: run fuzz tests with disk cache ( #4118 )
...
* chore: run fuzz tests with disk cache
* fix: print error messages correctly
2024-06-13 09:07:12 +00:00
Weny Xu
09e0e1b246
chore: run fuzz tests with kafka remote wal ( #4105 )
...
* chore: add fuzz tests with kafka
* chore(ci): use minio
* chore: add empty line
* chore(ci): refactor
* chore: add empty line
* fix: update config
* fix: add default value for `MetaClientOptions`
* fix: remove redundant `debug_assert`
* chore: run fuzz tests with disk cache
* chore: remove redundant minio setup
* chore: cache targets
* Revert "chore: run fuzz tests with disk cache"
This reverts commit d81783187d .
* chore: fix typo
* chore: apply suggestions from CR
* Revert "fix: remove redundant `debug_assert`"
This reverts commit 09b899eed1 .
2024-06-07 03:47:40 +00:00
Weny Xu
16b85b06b6
chore: remove gc before running fuzz tests ( #4108 )
2024-06-05 11:59:29 +00:00