Ning Sun
1287d4cb9f
ci: make sure clippy passes before running tests ( #5253 )
...
* ci: make sure clippy passes before running tests
* ci: do not run ci on main branch
2024-12-30 07:01:15 +00:00
Yingwen
f1eb76f489
fix: implement a CacheStrategy to ensure compaction use cache correctly ( #5254 )
...
* feat: impl CacheStrategy
* refactor: replace Option<CacheManagerRef> with CacheStrategy
* feat: add disabled strategy
* ci: force update taplo
* refactor: rename CacheStrategy::Normal to CacheStrategy::EnableAll
* ci: force install cargo-gc-bin
* ci: force install
* chore: use CacheStrategy::Disabled as ScanInput default
* chore: fix compiler errors
2024-12-30 06:24:53 +00:00
Yohan Wal
ef13c52814
feat: init PgElection with candidate registration ( #5209 )
...
* feat: init PgElection
fix: release advisory lock
fix: handle duplicate keys
chore: update comments
fix: unlock if acquired the lock
chore: add TODO and avoid unwrap
refactor: check both lock and expire time, add more comments
chore: fmt
fix: deal with multiple edge cases
feat: init PgElection with candidate registration
chore: fmt
chore: remove
* test: add unit test for pg candidate registration
* test: add unit test for pg candidate registration
* chore: update pg env
* chore: make ci happy
* fix: spawn a background connection thread
* chore: typo
* fix: shadow the election client for now
* fix: fix ci
* chore: readability
* chore: follow review comments
* refactor: use kvbackend for pg election
* chore: rename
* chore: make clippy happy
* refactor: use pg server time instead of local ones
* chore: typo
* chore: rename infancy to leader_infancy for clarification
* chore: clean up
* chore: follow review comments
* chore: follow review comments
* ci: unit test should test all features
* ci: fix
* ci: just test pg
2024-12-26 12:39:32 +00:00
discord9
6a46f391cc
ci: upload .pdb files too for better windows debug ( #5224 )
...
ci: upload .pdb files too
2024-12-25 08:10:57 +00:00
zyy17
267941bbb5
ci: support to pack multiple files in upload-artifacts action ( #5228 )
2024-12-25 02:37:32 +00:00
Ning Sun
c623404fff
ci: fix nightly ci task on nix build ( #5198 )
2024-12-21 10:09:32 +00:00
Yingwen
fa3b7ed5ea
build: use 8xlarge as arm default ( #5214 )
2024-12-21 08:39:24 +00:00
Weny Xu
1910d71cb3
chore: adjust fuzz tests cfg ( #5207 )
2024-12-20 06:58:51 +00:00
dennis zhuang
7ea8a44d3a
chore: update PR template ( #5199 )
2024-12-19 08:28:20 +00:00
Ning Sun
2107737db1
chore: make nix compilation environment config more robust ( #5183 )
...
* chore: improve nix-shell support
* fix: add pkg-config
* ci: add a github action to ensure build on clean system
* ci: optimise dependencies of task
* ci: move clean build to nightly
2024-12-18 12:41:24 +00:00
Weny Xu
d0245473a9
fix: correct set_region_role_state_gracefully behaviors ( #5171 )
...
* fix: reduce default max rows for fuzz testing
* chore: remove Postgres setup from fuzz test workflow
* chore(fuzz): increase resource limits for GreptimeDB cluster
* chore(fuzz): increase resource limits for kafka
* fix: correct `set_region_role_state_gracefully` behaviors
* chore: remove Postgres setup from fuzz test workflow
* chore(fuzz): redue resource limits for GreptimeDB & kafka
2024-12-16 14:01:40 +00:00
Yingwen
579059d99f
ci: use 4xlarge for nightly build ( #5158 )
2024-12-13 12:53:11 +00:00
discord9
d91517688a
chore: fix aws_lc not in depend tree check in CI ( #5121 )
...
* chore: fix aws_lc check in CI
* chore: update lock file
2024-12-11 07:02:03 +00:00
Yingwen
7c69ca0502
chore: bump main branch version to 0.12 ( #5133 )
...
chore: bump version to v0.12.0
2024-12-10 13:10:37 +00:00
Weny Xu
b35221ccb6
ci: set meta replicas to 1 ( #5111 )
2024-12-09 07:22:47 +00:00
Ning Sun
bcadce3988
chore: remove openssl deps ( #5079 )
...
* chore: remove openssl deps
* ci: add ci task to check blacklisted dependencies
2024-12-02 07:12:15 +00:00
Zhenchi
a6571d3392
chore: bump version to 0.10.0 ( #5040 )
...
* chore: bump version to 0.10.0
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness version regex
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-22 03:56:25 +00:00
zyy17
0089cf1b4f
fix: run install.sh error ( #4989 )
...
* fix: use '/bin/sh' shebang and remove function key word
* ci: check install.sh in nightly CI
2024-11-13 21:54:24 +00:00
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