Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(rdsn): Merge sub-project rdsn from XiaoMi/rdsn【TEST】 #1014

Merged
merged 4,068 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4068 commits
Select commit Hold shift + click to select a range
53c8c63
feat(split): clear split context while close replica (#786)
hycdong Mar 18, 2021
1405483
feat(split): add child partition check during config_sync (#788)
hycdong Mar 18, 2021
290a811
refactor(split): add function parent_handle_split_error (#795)
hycdong Mar 18, 2021
d0892d0
feat(one-time backup): add query backup status function (#796)
zhangyifan27 Mar 22, 2021
add5fbd
feat(one-time backup): add unit tests (#785)
zhangyifan27 Mar 23, 2021
c8d9d80
feat(split): update some split related perf-counter (#797)
hycdong Mar 24, 2021
7630322
fix: remove read size throttling (#799)
levy5307 Mar 26, 2021
a736920
fix: modify the ouput format for configs http api (#800)
levy5307 Mar 26, 2021
259779b
feat(http): update query data version (#801)
hycdong Mar 26, 2021
081707a
build: fix compilation errors on clang-10 (#803)
Mar 29, 2021
72c207b
feat(http): update query manual compaction interface (#805)
hycdong Mar 30, 2021
f508428
fix: compilation errors on clang-9 (#806)
Mar 30, 2021
d1caa13
fix: incorrect help info of meta/replica remote commands (#808)
Apr 2, 2021
77c0917
refactor: remove profiler related remote commands (#810)
Apr 6, 2021
646a8b1
fix(backup_policy): do not try again when got fs errors (#807)
zhangyifan27 Apr 8, 2021
89f2fab
fix(one_time_backup): mark a backup failed when write backup info fai…
zhangyifan27 Apr 14, 2021
4ee361b
refactor: remove explorer from rdsn (#811)
Apr 14, 2021
03a441a
feat(one-time backup): support user specified backup path (#814)
zhangyifan27 Apr 16, 2021
41f1fa8
feat(restore): support user specified restore path (#816)
zhangyifan27 Apr 19, 2021
c951226
feat(ddl_client): support backup app and query backup (#817)
zhangyifan27 Apr 19, 2021
fdf0076
chore: update license to alv2 (part1) (#819)
Apr 20, 2021
552169e
chore: update license to alv2 (part2) (#821)
Apr 21, 2021
1ff27d5
fix(restore): fix not found error when restore app metadata (#822)
zhangyifan27 Apr 22, 2021
c49e6fd
fix(bulk_load): fix remove_local_bulk_load_dir() (#823)
zhangyifan27 Apr 25, 2021
ad9d61d
fix: add /version http api (#824)
Smityz Apr 25, 2021
b4b9a4e
fix: support retry when io write incompletely (#818)
foreverneverer Apr 26, 2021
510d7c9
fix(bulk_load): redownload file if local file damaged (#826)
hycdong Apr 27, 2021
5fd3c27
fix(bulk_load): remove possible old directory when start bulk load (#…
hycdong Apr 28, 2021
788f4ea
feat(bulk_load): add bulk load max rollback count (#827)
hycdong May 6, 2021
6693cf7
feat(bulk_load): meta server adds bulk load ingestion concurrent coun…
hycdong May 7, 2021
fb752f7
test: add workflow for new tag creation and regular build (#820)
neverchanje May 16, 2021
2c84041
feat(split-client): c++ client split related implementation (#798)
hycdong May 19, 2021
cd0a237
feat: add remote command to get tcmalloc status (#832)
ZhongChaoqiang May 22, 2021
0cdb049
fix: fix a compile error on clang (#835)
acelyc111 May 26, 2021
e52e9a0
chore: update license to alv2 (part3) (#825)
neverchanje May 26, 2021
f956065
fix: fix github actions not run when reopen a PR (#836)
acelyc111 May 27, 2021
ea1d8f3
refactor: remove unused adminssion controller (#684)
neverchanje May 27, 2021
6200ada
fix: update bulk load download thread pool (#837)
hycdong May 28, 2021
5b8e4f6
feat(disk): reject write if disk space is insufficient (#833)
hycdong May 28, 2021
78aefe1
refactor: refactor replication_options initialize function (#831)
hycdong Jun 2, 2021
f1827ec
feat(disk): add broken disk check while initialize (#834)
hycdong Jun 7, 2021
fdb1a02
fix: fix a compilation error on clang (#842)
zhangyifan27 Jun 10, 2021
87ad763
fix(backup_policy): ignore current backup when policy is diabled (#840)
zhangyifan27 Jun 10, 2021
fbdfba7
chore: support markdown link check action (#844)
acelyc111 Jun 16, 2021
9bc6be3
fix: add a destructor for `join_point` (#841)
zhangyifan27 Jun 16, 2021
e70d406
fix(graceful_exit): adjust the destructing order (#843)
zhangyifan27 Jun 16, 2021
60769c4
fix: plog may be lost on going duplicating when replica re-open and t…
foreverneverer Jun 17, 2021
76577b2
fix: implement reset_from to fix plog loss when duplicating with lear…
foreverneverer Jun 22, 2021
fc224a4
feat: add env check for user specified compaction (#849)
levy5307 Jul 2, 2021
6ca65c7
fix(client): client not retry while receive splitting or disk insuffi…
hycdong Jul 5, 2021
aedc988
fix(disk): fix disk space insufficient bug (#851)
hycdong Jul 5, 2021
41b5d3d
feat: add partition guardian to keep one primary and two secondaries …
levy5307 Jul 8, 2021
1275b1b
feat: add rate limiter for backup request (#855)
levy5307 Jul 14, 2021
e31d49c
refactor: move on_redundant_secondary from simple_load_balancer to pa…
levy5307 Jul 14, 2021
11c8b5f
feat: add flag to enable cluster load balance (#853)
levy5307 Jul 19, 2021
e5a793f
feat: implement move primary for cluster load balancer (#857)
levy5307 Jul 20, 2021
47871eb
feat: add perf-counter to record dropped timeout rpc count (#859)
hycdong Jul 22, 2021
31ad7e9
feat(disk): support add disk rpc (#839)
hycdong Jul 22, 2021
3858fdc
fix(duplication): reset confirmed_decree to delete secondary private …
foreverneverer Jul 23, 2021
7e3eab7
feat: throw exception if reads corrupt data (#863)
levy5307 Jul 25, 2021
df46be2
fix(duplication): force wait confirmed_decree sync complete when star…
foreverneverer Jul 26, 2021
9cd9991
feat(duplication): derror and add perf-counter if mutation loss inste…
foreverneverer Jul 26, 2021
7b164b8
feat: add balance type for cluster load balance (#858)
levy5307 Jul 27, 2021
6de2430
feat: supporting release all tcmalloc reserved but not used memory (#…
hycdong Jul 28, 2021
e3e24f7
feat: add an env to enable or disable block cache of an app (#865)
ZhongChaoqiang Jul 29, 2021
a530ef4
feat: update dropped-timeout-rpc-count counter type (#867)
hycdong Jul 30, 2021
3bda0ba
fix(sanitizer): fix heap-use-after free in hdfs client test (#868)
levy5307 Jul 30, 2021
633f08e
fix(sanitizer): coredump in meta_service_test.check_status_failure (#…
levy5307 Jul 30, 2021
196df9a
fix: init app before start tests (#870)
levy5307 Jul 30, 2021
8530b9f
fix(sanitizer): coredump in replica test (#871)
levy5307 Jul 30, 2021
4bddefe
feat: add function to get cluster migration info (#866)
levy5307 Aug 2, 2021
e89df8d
feat: add implementation of get next move (#872)
levy5307 Aug 6, 2021
8a5bb4d
fix: fix replica::init_table_level_latency_counter metric name error …
zouweiming758 Aug 6, 2021
68df0e9
feat: make token bucket in fds configurable (#874)
levy5307 Aug 12, 2021
2b7cbf5
feat: add a new thread pool to process slow query (#856)
Smityz Aug 12, 2021
dca521f
fix: don't build HDFSClientTest.test_remove_path_while_writing if sa…
levy5307 Aug 13, 2021
6db3165
fix: update mutation tracer name to mutation->name() (#876)
foreverneverer Aug 13, 2021
f52a6a9
fix(split): adapt java client 2.0 version requests (#877)
hycdong Aug 16, 2021
c5968c7
feat: implement greedy_load_balancer::pick_up_move (#873)
levy5307 Aug 17, 2021
7599275
feat: add sanitizer test for pull request (#880)
levy5307 Aug 17, 2021
f5ecd5e
feat: implement greedy_load_balancer::pick_up_partition (#881)
levy5307 Aug 18, 2021
384b19a
feat: implement greedy_load_balancer::apply_move (#882)
levy5307 Aug 26, 2021
73004eb
feat: add copy secondary for cluster balance (#883)
levy5307 Aug 26, 2021
0cc61f0
refactor: move from_proposals from simple_load_balancer to partition_…
levy5307 Aug 26, 2021
cc19f41
refactor: move on_missing_primary from server_load_balancer to partit…
levy5307 Aug 26, 2021
14269f2
refactor: move on_missing_secondary from simple_load_balancer to part…
levy5307 Aug 27, 2021
021d9f4
refactor: move finish_cure_proposal from simple_load_balancer to part…
levy5307 Aug 27, 2021
6135e45
feat(split): add split reject counters (#891)
hycdong Aug 30, 2021
6604f6a
refactor: move register_ctrl_commands from simple_load_balancer to pa…
levy5307 Aug 31, 2021
abca811
feat(bulk_load): add replica-level bulk load reject write counter (#895)
hycdong Aug 31, 2021
a63f453
refactor: move collect_replica from simple_load_balancer to meta_data…
levy5307 Aug 31, 2021
a054d88
refactor: move construct_replica from simple_load_balancer to meta_da…
levy5307 Aug 31, 2021
88eea17
refactor: move reconfig from simple_load_balancer to partition_guardi…
levy5307 Aug 31, 2021
a33c9c9
refactor: move get_ddd_partitions from server_load_balancer to partit…
levy5307 Aug 31, 2021
3bcff61
refactor: remove simple_load_balancer (#899)
levy5307 Sep 2, 2021
d4ccfbd
fix: add virtual to destructor of partition_guardian (#900)
levy5307 Sep 3, 2021
2cec889
feat: support nfs server rate limit (#901)
foreverneverer Sep 6, 2021
d0ff0a9
feat(perf_counter): add a perf_counter of server session (#894)
Smityz Sep 7, 2021
865c839
fix: fix bug that didn't copy primary in cluster load balancer (#904)
levy5307 Sep 7, 2021
4cce780
feat(load-balance): update selection strategy for max load disk (#916)
hycdong Sep 22, 2021
cafadac
feat: make secondary commit asynchronously (#909)
levy5307 Sep 27, 2021
eff1acb
feat: support jemalloc (#910)
empiredan Sep 27, 2021
cad437c
feat(task): add dynamic control of task queue length (#902)
Smityz Sep 28, 2021
77a45ea
feat: support single replica (#932)
empiredan Oct 9, 2021
d84c5ad
fix: mutation_log_test failed when compile with debug type (#933)
foreverneverer Oct 11, 2021
bc774d4
feat(thirdparty): change galaxy-fds-sdk-cpp download source (#888)
Smityz Oct 21, 2021
7cd5e4b
feat: add an interface for rpc_holder to set error (#939)
Smityz Oct 21, 2021
796cba1
feat(utils): add the token buckets wrapper to get bucket by name (#943)
foreverneverer Oct 25, 2021
410fd56
feat: add a token_bucket_throttling_controller (#941)
Smityz Oct 27, 2021
1e8b2ba
feat: add rate limiter for per disk when nfs copy data (#944)
foreverneverer Oct 27, 2021
1f56bd5
fix: add TokenBucket header in the `token_bucket_throttling_controlle…
Smityz Oct 29, 2021
baa8a46
feat: add new codes in env to support `READ_SIZE_THROTTLING` (#948)
Smityz Nov 1, 2021
af2b048
feat: add an interface for app_base to get replica info (#947)
Smityz Nov 1, 2021
667d84d
feat: support perfcounter and more information trace log (#945)
foreverneverer Nov 1, 2021
fc41809
refactor: add an interface for checking if the bucket is empty (#950)
Smityz Nov 2, 2021
f61fed7
fix: the nfs copy config of remote-command is error (#954)
foreverneverer Nov 4, 2021
71c40b4
refactor: use latest latency tool to add point for write process (#951)
foreverneverer Nov 4, 2021
815888a
fix: partitions are unbalanced after the table is created (#957)
ZhongChaoqiang Nov 8, 2021
137938e
feat(bulk_load): async create connection with remote file provider (#…
hycdong Nov 8, 2021
9f14088
feat(bulk_load): not rollback to downloading if bulk load meet error …
hycdong Nov 9, 2021
a7e7230
refactor(bulk_load): update some bulk load logs (#960)
hycdong Nov 10, 2021
9f8c067
feat(bulk_load): remove bulk load request short interval avoid unnece…
hycdong Nov 10, 2021
1be6905
fix: bug in learn that can't complete (#961)
levy5307 Nov 11, 2021
9546c46
refactor(bulk_load): refactor get_app for bulk_load_service (#962)
hycdong Nov 12, 2021
cba16ed
feat(bulk_load): add unhealthy partition check (#964)
hycdong Nov 15, 2021
a81b31c
fix: break execute some method when disable latency tracer (#965)
foreverneverer Nov 16, 2021
3eaf8e4
fix: remove bulk_load_meta_service::check_partition_status useless th…
hycdong Nov 18, 2021
2bf7cb2
refactor: merge load balance refactor code (#974)
levy5307 Nov 19, 2021
990bdfd
feat: support to count alive nodes (#968)
empiredan Nov 22, 2021
0cd47dd
fix: drop redundant recent_choose_primary_fail_count (#980)
empiredan Dec 9, 2021
3b7756b
feat(manual_compaction): replica report status part1. add function qu…
hycdong Dec 9, 2021
72ea4ff
fix: add pragma once in backup_engine.h (#982)
levy5307 Dec 9, 2021
2b08ee7
feat(op_status_lock): add an operation status lock for meta (#977)
GiantKing Dec 9, 2021
455822b
feat(manual_compaction): replica report status part3 (#983)
hycdong Dec 13, 2021
58e0627
fix: the join point name of on_rpc_create_response (#984)
empiredan Dec 13, 2021
4039144
fix: add app_info duplicating initial value (#976)
GehaFearless Dec 13, 2021
e06691a
feat: implement grouped flag validators (#978)
empiredan Dec 13, 2021
fedb845
feat: change the nfs limiter diable by default (#985)
foreverneverer Dec 13, 2021
f845d8c
feat: restrict the replication factor while creating app (#963)
empiredan Dec 15, 2021
fac96a3
feat(manual_compaction): meta server support querying compaction stat…
hycdong Dec 15, 2021
e8cee55
feat(manual_compaction): meta server support starting compaction (#989)
hycdong Dec 17, 2021
af568d8
feat(backup): add write limiter for hdfs (#988)
Smityz Dec 21, 2021
24bf381
refactor: move func get_current_cluster_name out of duplication_commo…
levy5307 Dec 24, 2021
982c2bd
feat(bulk_load): add bulk load manager for meta (#986)
GiantKing Dec 24, 2021
2dc8a2b
refactor: move bulk load common types to a seperate file (#995)
levy5307 Dec 24, 2021
d12b2ac
refactor: move partition split common types to a seperate file (#996)
levy5307 Dec 27, 2021
f9700bc
refactor: move manual compaction common types to a seperate file (#997)
levy5307 Dec 27, 2021
3e1734e
refactor: move backup common types to backup_common.h (#998)
levy5307 Dec 28, 2021
452104a
fix(rocksdb): upgrade rocksdb to fix NotifyOnFlushCompleted() for ato…
empiredan Dec 28, 2021
75fe342
refactor: remove unused function in replication_common.h (#1000)
levy5307 Dec 29, 2021
08af400
feat(online_migration):part1 - add new app_envs to control rocksdb al…
hycdong Dec 29, 2021
93fe4c4
feat(online_migration): part2 - add ingest_behind option for bulk loa…
hycdong Dec 31, 2021
fa3e86b
fix(bulk_load): fix replica validate status check (#1004)
hycdong Dec 31, 2021
6af2c32
refactor: add a new function to store app_info into file (#1003)
hycdong Jan 5, 2022
f8d632f
fix: make is_bulk_loading filed optional in query_bulk_load_response …
hycdong Jan 6, 2022
b54fb9d
build: require add issue reference in description using github action…
foreverneverer Jan 7, 2022
3d1c988
fix: message body size unset after parsed which leads to large io thr…
padmejin Jan 10, 2022
a7c5c9d
refactor: simplify code by macros (#1012)
acelyc111 Jan 10, 2022
2987691
refactor: remove deprecated replica .info file (#1015)
acelyc111 Jan 10, 2022
ac8f8de
fix: use fsync() to prevent .app-info/.init-info lost risk on XFS aft…
acelyc111 Jan 12, 2022
0cb88e2
fix(bulk_load): update ingestion error handling with move_files mode …
hycdong Jan 17, 2022
5269c50
refactor: avoid to call add_point in latency_tracer (#1023)
levy5307 Jan 19, 2022
1c71765
feat: add dsn_unlikely in macro ADD_POINT (#1029)
levy5307 Jan 20, 2022
33d4bbb
feat(bulk_load): add verify_before_ingest option (#1027)
hycdong Jan 20, 2022
34a3b26
refactor(bulk_load): rename update_partition_status_on_remote_storage…
hycdong Jan 20, 2022
210b944
refactor: remove dump dir which is useless (#1030)
levy5307 Jan 20, 2022
5cc805a
refactor: change the type of prepare_list from raw pointer to std::un…
levy5307 Jan 21, 2022
0de7523
feat: add tracer point in plog (#993)
levy5307 Dec 24, 2021
ede63db
feat: support callback for plog append (#994)
levy5307 Dec 27, 2021
6678c37
feat: add force flush option for private log (#999)
levy5307 Dec 29, 2021
3ce03b1
feat: remove unused options in privated log (#1005)
levy5307 Jan 5, 2022
ca93903
feat: write private log synchronously (#1007)
levy5307 Jan 6, 2022
fa58cd7
fix: stack overflow in duplication test (#1022)
levy5307 Jan 19, 2022
058f947
fix: remove unused judgement of FLAGS_enable_latency_tracer in privat…
levy5307 Jan 20, 2022
daa7585
feat(build): support to build on MacOS (#1034)
acelyc111 Jan 25, 2022
e805bf4
feat(bulk_load): avoid unecessary repeated ingestion (#1018)
hycdong Jan 25, 2022
582c8bb
fix(network): use multi io_services in asio (#1016)
Smityz Jan 26, 2022
96d4409
fix(one-time backup): fix bug when backup request is timeout (#990)
Smityz Jan 26, 2022
df4af63
fix(build): fix higher version cmake produce filename as 'compiler_de…
acelyc111 Jan 27, 2022
f2084d4
feat(bulk_load): support disk_level ingesting restriction part1 - add…
hycdong Jan 27, 2022
dc8d6e0
fix: remove min_live_node_count_for_unfreeze from meta_options to ens…
empiredan Jan 27, 2022
2dd67e0
feat(bulk_load): support disk_level ingesting restriction part2 imple…
hycdong Jan 28, 2022
9843e3c
fix: fail_point is failed when use `FAIL_POINT_INJECT_VOID_F` (#1047)
foreverneverer Feb 9, 2022
82aadea
feat: make option empty_write_disable mutable (#1048)
levy5307 Feb 9, 2022
8c310b9
fix: shutdown error while close replica (#1052)
hycdong Feb 11, 2022
89dc34f
fix(build): update GCC and CMake checker (#1041)
Smityz Feb 14, 2022
111e8ce
refactor: drop redundant config_status::pending_proposal (#1050)
empiredan Feb 21, 2022
a9ace87
refactor: delete some useless code in `replica_chkpt` (#1058)
foreverneverer Feb 22, 2022
d60c17c
refactor: use the corrent cast operation (#1062)
levy5307 Feb 28, 2022
4fbd324
refactor: make ctor/dtor of singleton classes to be private (#1068)
levy5307 Mar 4, 2022
f45c76f
feat(direct_io): download files from hdfs with direct I/O (#1069)
GiantKing Mar 14, 2022
3244262
fix: add a decree check when replica server receive the assign_primar…
WHBANG Mar 21, 2022
b8942ec
feat(verify_file): update the file validation logic for bulk load dow…
GiantKing Mar 21, 2022
f272542
feat(dup_enhancement#1): add new dup status to support new dup (#1038)
foreverneverer Feb 7, 2022
942eae3
feat(dup_enhancement#2): add more follower's info for master meta (#1…
foreverneverer Feb 7, 2022
0559ef8
feat(dup_enhancement#3): update load_meta_servers to avoid crush when…
foreverneverer Feb 7, 2022
cc4d6b1
feat(dup_enhancement#4): implement `create_follower_app_for_duplicati…
foreverneverer Feb 10, 2022
4e91f36
feat(dup_enhancement#5): add and support updating `checkpoint_prepare…
foreverneverer Feb 11, 2022
203bb54
feat(dup_enhancement#6): implement `check_follower_app_if_create_comp…
foreverneverer Feb 14, 2022
33f8fce
feat(dup_enhancement#7): implement `prepare_dup` function in replica …
foreverneverer Feb 16, 2022
5083015
feat(dup_enhancement#8): master replica sync info to meta support `ch…
foreverneverer Feb 17, 2022
2dd71c6
feat(dup_enhancement#9): master replica support `on_query_last_checkp…
foreverneverer Feb 22, 2022
78aaf35
fix(dup_enhancement#10): follower meta need return `ERR_APP_EXIST` wh…
foreverneverer Feb 23, 2022
57e92c3
feat(dup_enhancement#11): follower replica add `replica_follower` to …
foreverneverer Feb 28, 2022
1c66a00
feat(dup_enhancement#12): follower replica add framework and implemen…
foreverneverer Mar 1, 2022
81eeee1
feat(dup_enhancement#13): follower replica support query and update m…
foreverneverer Mar 2, 2022
b44ae79
feat(dup_enhancement#14): follower replica support nfs copy checkpoin…
foreverneverer Mar 2, 2022
5575547
fix(dup_enhancement#15): follower replica add `duplciation_dir` in `r…
foreverneverer Mar 3, 2022
7752c70
fix(dup_enhancement#16): change some `replica_app_base` function to v…
foreverneverer Mar 4, 2022
f18711c
fix(dup_enhancement#19): change checkpoint status after manual checkp…
foreverneverer Mar 10, 2022
516ff0c
fix(dup_enhancement#20): put `async_duplicate_checkpoint_from_master_…
foreverneverer Mar 16, 2022
997c2dc
fix(dup_enhancement#21): add batch replay log to support batch send m…
foreverneverer Mar 24, 2022
3f8882a
refactor(dup_enhancement#22): delete useless `freezed` argument (#1084)
foreverneverer Mar 29, 2022
ea92106
fix(dup_enhancement#23): update code after rebase master
foreverneverer Mar 29, 2022
7f02509
feat(dup_enhancement#25): add `-s | --sst` argument to support ignori…
foreverneverer Apr 8, 2022
d03b2b9
feat: add deny table env to reject client read/write request (#1086)
foreverneverer Apr 13, 2022
258dfa4
feat: zookeeper client support kerberos (#979)
GehaFearless Apr 14, 2022
6cf41ac
fix: update disk state when disk migrate completed (#1088)
foreverneverer Apr 15, 2022
f4c5724
chore: separate cpp and non-app changes to save CI time (#1096)
acelyc111 Apr 19, 2022
727d909
chore: Use official apache/pegasus repo of DockerHub (#1093)
acelyc111 Apr 20, 2022
da84390
ci: fix syntax errors in action yaml files (#1098)
acelyc111 Apr 21, 2022
9bc95d1
feat: support aarch64 (#1097)
GehaFearless Apr 25, 2022
47fd85c
fix: enable clang build for BuildPegasusRegularly job (#1100)
GehaFearless Apr 26, 2022
3f0c632
fix: crash when huge write (#1099)
ZhongChaoqiang Apr 28, 2022
f75c4bb
fix: fix md5 lack during block service download (#1101)
hycdong May 9, 2022
51900ce
fix(bulk_load): fix bug that poping all committed mutations ineffecti…
hycdong May 12, 2022
3eb720b
feat(bulk_load): support clear last bulk load state rpc (#1103)
hycdong May 12, 2022
e38b5ff
feat(bulk_load): update downloading to avoid blocking default thread …
hycdong May 16, 2022
608c3ce
feat(bulk_load): support different tables can execute bulk load concu…
hycdong May 18, 2022
5010f49
feat(update_replication_factor#1): support to get the replication fac…
empiredan Mar 2, 2022
9037e76
feat(update_replication_factor#2): add RPC for setting the replicatio…
empiredan Mar 11, 2022
ff514df
feat(update_replication_factor#3): support to set the replication fac…
empiredan Mar 25, 2022
76ca08a
feat(update_replication_factor#4): support to set env for the replica…
empiredan Apr 13, 2022
a31eef7
feat(update_replication_factor#5): support to set the replication fac…
empiredan May 19, 2022
f620eca
feat(update_replication_factor#6): sync max_replica_count from meta s…
empiredan May 20, 2022
6171fcc
feat(update_replication_factor#7): replace cluster-level max_replicas…
empiredan May 23, 2022
fe0a5dd
feat(update_replication_factor#8): recover uncompleted update of repl…
empiredan Jun 1, 2022
61e3890
feat(update_replication_factor#9): merge max_replica_count_rebased_de…
empiredan Jun 2, 2022
6519e25
chore: Add license header check action (#1111)
acelyc111 Jun 7, 2022
0cba7eb
Revert "chore: Add license header check action (#1111)" (#1117)
acelyc111 Jun 13, 2022
d25e7f8
fix: drop unused 'this' from lambda capture for unit-tests that verif…
empiredan Jun 15, 2022
a0b7e6d
chore: Add MIT license header check action (#1119)
acelyc111 Jun 16, 2022
b0232a0
chore: Add MIT license header check action (p2) (#1120)
acelyc111 Jun 17, 2022
0cf8034
chore: Add license declaration to LICENSE file (#1122)
acelyc111 Jun 17, 2022
c563079
fix: assert is not necessary when the table config is updated (#1121)
foreverneverer Jun 20, 2022
bf76b99
feat(new_metrics): merge prometheus-dev into master branch (#1127)
acelyc111 Jun 20, 2022
0afb557
chore: move source code to rdsn sub-directory before merging to Pegas…
acelyc111 Jun 21, 2022
357b918
remove rdsn
acelyc111 Jun 21, 2022
2610598
Merge branch xiaomi/rdsn prepare_merge_to_pegasus-dev into Pegasus
acelyc111 Jun 21, 2022
fb8c784
chore: necessary modifications after rdsn been merged to Pegasus
acelyc111 Jun 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 10 additions & 6 deletions .github/workflows/check_license_header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
push:
branches:
- master
- 'v[0-9]+.*' # release branch
- ci-test # testing branch for github action
- '*dev' # developing branch

jobs:
license-check:
name: "License Check"
Expand All @@ -29,11 +33,11 @@ jobs:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
- name: Check License Header
uses: apache/skywalking-eyes@v0.2.0
uses: apache/skywalking-eyes@v0.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # needed only when you want License-Eye to comment on the pull request.
# with:
# Optional: set the log level. The default value is `info`.
# log: debug
# Optional: set the config file. The default value is `.licenserc.yaml`.
# config: .licenserc.yaml
with:
# Optional: set the log level. The default value is `info`.
# log: debug
# Optional: set the config file. The default value is `.licenserc.yaml`.
config: .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# it's recommended to create a PR against the ci-test branch to test if it works
# as expected.

name: CPP Lint and Unit Test
name: Pegasus cpp Lint and Unit Test

on:
# run on each pull request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
# specific language governing permissions and limitations
# under the License.
---
# There are 'paths' filters for ci-pull-request.yaml,
# There are 'paths' filters for lint_and_test_pegasus.yaml,
# it can be skipped, but lead CI pending, we add this
# 'always pass' action to resolve it, see more details:
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks

name: CPP Lint and Unit Test
name: Pegasus cpp Lint and Unit Test

on:
# run on each pull request
Expand Down
237 changes: 237 additions & 0 deletions .github/workflows/lint_and_test_rdsn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
---
# Developer Notes:
#
# This config is for github actions. Before merging your changes of this file,
# it's recommended to create a PR against the ci-test branch to test if it works
# as expected.

name: rdsn Lint and Unit Test

on:
# run on each pull request
pull_request:
types: [ synchronize, opened, reopened ]
paths:
- .github/workflows/lint_and_test_rdsn.yaml
- rdsn/CMakeLists.txt
- rdsn/bin/**
- rdsn/compile_thrift.py
- rdsn/include/**
- rdsn/run.sh
- rdsn/scripts/**
- rdsn/src/**
- rdsn/thirdparty/**
branches:
- master
- 'v[0-9]+.*' # release branch
- ci-test # testing branch for github action
- '*dev' # developing branch

# for manually triggering workflow
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: apache/pegasus:clang-format-3.9
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: clang-format
working-directory: rdsn
run: ./scripts/linux/run-clang-format.py --clang-format-executable=clang-format-3.9 -r src include

test:
name: Test
needs: lint
runs-on: self-hosted
container:
image: apache/pegasus:thirdparties-bin-ubuntu1804
env:
CCACHE_DIR: /tmp/ccache/pegasus
CCACHE_MAXSIZE: 10G
volumes:
# Place ccache compilation intermediate results in host memory, that's shared among containers.
- /tmp/ccache/pegasus:/tmp/ccache/pegasus
# Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker.
options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
thirdparty:
- 'rdsn/thirdparty/**'
- name: Unpack prebuilt third-parties
working-directory: rdsn
if: steps.changes.outputs.thirdparty == 'false'
run: unzip /root/thirdparties-bin.zip -d ./thirdparty
- name: Rebuild third-parties
if: steps.changes.outputs.thirdparty == 'true'
working-directory: rdsn/thirdparty
run: |
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -B build/
cmake --build build/ -j $(($(nproc)/2+1))
- name: Compilation
working-directory: rdsn
run: ./run.sh build -c --skip_thirdparty
- name: Unit Testing
working-directory: rdsn
run: |
export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
ulimit -s unlimited
./run.sh test --skip_thirdparty

test-with-sanitizer-address:
name: Test With Sanitizer Address
needs: lint
runs-on: self-hosted
container:
image: apache/pegasus:thirdparties-bin-ubuntu1804
env:
CCACHE_DIR: /tmp/ccache/pegasus
CCACHE_MAXSIZE: 10G
volumes:
# Place ccache compilation intermediate results in host memory, that's shared among containers.
- /tmp/ccache/pegasus:/tmp/ccache/pegasus
# Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker.
options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
thirdparty:
- 'rdsn/thirdparty/**'
- name: Unpack prebuilt third-parties
working-directory: rdsn
if: steps.changes.outputs.thirdparty == 'false'
run: unzip /root/thirdparties-bin.zip -d ./thirdparty
- name: Rebuild third-parties
if: steps.changes.outputs.thirdparty == 'true'
working-directory: rdsn/thirdparty
run: |
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -B build/
cmake --build build/ -j $(($(nproc)/2+1))
- name: Compilation
working-directory: rdsn
run: ./run.sh build -c --sanitizer address --skip_thirdparty --disable_gperf
- name: Unit Testing
working-directory: rdsn
run: |
export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
ulimit -s unlimited
./run.sh test --sanitizer address --skip_thirdparty --disable_gperf

test-with-sanitizer-leak:
name: Test With Sanitizer Leak
needs: lint
runs-on: self-hosted
container:
image: apache/pegasus:thirdparties-bin-ubuntu1804
env:
CCACHE_DIR: /tmp/ccache/pegasus
CCACHE_MAXSIZE: 10G
volumes:
# Place ccache compilation intermediate results in host memory, that's shared among containers.
- /tmp/ccache/pegasus:/tmp/ccache/pegasus
# Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker.
options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
thirdparty:
- 'rdsn/thirdparty/**'
- name: Unpack prebuilt third-parties
working-directory: rdsn
if: steps.changes.outputs.thirdparty == 'false'
run: unzip /root/thirdparties-bin.zip -d ./thirdparty
- name: Rebuild third-parties
if: steps.changes.outputs.thirdparty == 'true'
working-directory: rdsn/thirdparty
run: |
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -B build/
cmake --build build/ -j $(($(nproc)/2+1))
- name: Compilation
working-directory: rdsn
run: ./run.sh build -c --sanitizer leak --skip_thirdparty --disable_gperf
- name: Unit Testing
working-directory: rdsn
run: |
export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
ulimit -s unlimited
./run.sh test --sanitizer leak --skip_thirdparty --disable_gperf

test-with-sanitizer-undefined:
name: Test With Sanitizer Undefined
needs: lint
runs-on: self-hosted
container:
image: apache/pegasus:thirdparties-bin-ubuntu1804
env:
CCACHE_DIR: /tmp/ccache/pegasus
CCACHE_MAXSIZE: 10G
volumes:
# Place ccache compilation intermediate results in host memory, that's shared among containers.
- /tmp/ccache/pegasus:/tmp/ccache/pegasus
# Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker.
options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
thirdparty:
- 'rdsn/thirdparty/**'
- name: Unpack prebuilt third-parties
working-directory: rdsn
if: steps.changes.outputs.thirdparty == 'false'
run: unzip /root/thirdparties-bin.zip -d ./thirdparty
- name: Rebuild third-parties
if: steps.changes.outputs.thirdparty == 'true'
working-directory: rdsn/thirdparty
run: |
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -B build/
cmake --build build/ -j $(($(nproc)/2+1))
- name: Compilation
working-directory: rdsn
run: ./run.sh build -c --sanitizer undefined --skip_thirdparty --disable_gperf
- name: Unit Testing
working-directory: rdsn
run: |
export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
ulimit -s unlimited
./run.sh test --sanitizer undefined --skip_thirdparty --disable_gperf
77 changes: 77 additions & 0 deletions .github/workflows/lint_and_test_rdsn_always_pass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
---
# There are 'paths' filters for .github/workflows/cpp_actions.yaml,
# it can be skipped, but lead CI pending, we add this
# 'always pass' action to resolve it, see more details:
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks

name: rdsn Lint and Unit Test

on:
# run on each pull request
pull_request:
types: [ synchronize, opened, reopened ]
paths-ignore:
- .github/workflows/cpp_actions.yaml
- rdsn/CMakeLists.txt
- rdsn/bin/**
- rdsn/compile_thrift.py
- rdsn/include/**
- rdsn/run.sh
- rdsn/scripts/**
- rdsn/src/**
- rdsn/thirdparty/**
branches:
- master
- 'v[0-9]+.*' # release branch
- ci-test # testing branch for github action
- '*dev' # developing branch

# for manually triggering workflow
workflow_dispatch:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '

test:
name: Test
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '

test-with-sanitizer-address:
name: Test With Sanitizer Address
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '

test-with-sanitizer-leak:
name: Test With Sanitizer Leak
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '

test-with-sanitizer-undefined:
name: Test With Sanitizer Undefined
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '
Loading