Commit Graph
7330 Commits
Author SHA1 Message Date
Zhanhui Li ec8a93d2f7 Support build with Bazel (#4865)
* Support build with Bazel, fixing tests to make them capable of running in concurrency and hermetic.
2022-08-23 13:11:53 +08:00
mxsm 92d10baf24 [ISSUE #4868] Remove unnecessary words from CommitLog#asyncPutMessage method comments (#4869) 2022-08-23 08:51:18 +08:00
rongtong a1dfb0197d Remove useless main function (#4867) 2022-08-22 18:00:54 +08:00
mxsm e307e33bd4 [ISSUE #4853] adjust the picture (#4854) 2022-08-22 17:57:01 +08:00
SparkLee e22d9c7351 add missing assertions of some test cases (#4860)
* add missing assertions of some test cases

* add missing import
2022-08-22 14:41:53 +08:00
Zhanhui Li 9c19e4a18a Remove useless github actions (#4863) 2022-08-22 10:40:39 +08:00
Aaron Ai 9e53567b8e [ISSUE #3998] Enable Github Action for CI Build (#4782)
* Enable Github Action for CI Build
2022-08-22 10:36:07 +08:00
rongtong 58c1d1efcb [ISSUE #4855] Add example of timing messages with arbitrary time delay (#4856)
* Add timer message example

* Make send result in console output better
2022-08-22 09:42:08 +08:00
mxsm 96fd4f52e0 [ISSUE #4851] Fix HAService implement class some method miss @Override annotation (#4852) 2022-08-21 09:57:00 +08:00
allen 97521a3d8d [ISSUE #4849] Print message body while querying message, admin tools (queryMsgById&queryMsgByOffset) enhancement. (#4850) 2022-08-20 12:24:54 +08:00
mxsm d117742e3c [ISSUE #4847]Optimize DefaultBrokerHeartbeatManager#onBrokerHeartbeat mehtod code logic (#4848) 2022-08-20 09:54:04 +08:00
mxsm 02595d9360 [ISSUE #4845] Fix Controller design.md typo (#4846) 2022-08-20 09:20:58 +08:00
HuiTong b7f0162ffa fix thread-safety problem of admin tools (#4843) 2022-08-19 12:26:47 +08:00
echooymxq 21f3a0bb41 Add Controller's log to Namesrv when enableControllerInNamesrv=true. (#4844) 2022-08-19 11:43:01 +08:00
CoedPigandshanpengyu d17a7f04cc fix code bug & optimize the memory usage in DefaultMappedFile (#4678)
* optimize the memory usage in DefaultMappedFile:
use AtomicIntegerFieldUpdater instead of AtomicInteger

* fix code bug:
if the initial cursor of listIterator equals zero,
the previous element will always null.

* modify constant name

Co-authored-by: shanpengyu <shanpengyu@bytedance.com>
2022-08-17 10:25:41 +08:00
caigy e3c2111feb [ISSUE #4821] Add some integration tests for POP consumption in slave-acting-master mode (#4822)
* fix #4821

* add license header and ignore executing integration tests in automatic flow

* fix unit test

* fix unit test
2022-08-16 21:39:41 +08:00
TheR1sing3un c5f80713be [ISSUE #4813] Add elect policy for controller (#4809)
* feat(controller): add elect policy

1. add epoch and maxOffset in heartbeat.
2. refactor elect logic, now we
elect a new master by elect policy(can expand).
3. add some unit tests

* refactor(controller): refactor some code and format some code

1. refactor some code and format some code

* fix typo in ReplicasInfoManager

1. fix typo in ReplicasInfoManager

* fix wrong method call in ReplicasManagerTest#before

1.fix wrong method call in ReplicasManagerTest#before

* fix wrong call in ReplicasManagerTest#before

1. fix wrong call in ReplicasManagerTest#before

* fix(controller): fix the bug about ReElectMaster

1. fix the bug about ReElectMaster
2. fix some typo

* style(controller): fix typo by checkstyle

1. fix typo by checkstyle

* test(broker): fix invalid usage of "any()" in DLedegerControllerTest#before

1. fix invalid usage of "any()" in DLedegerControllerTest#before

* fix(controller): fix some wrong usage in test

1. fix some wrong usage in test
2. refactor some field type to avoid NPE
2022-08-16 08:41:51 +08:00
lizhiboo dd87d90b29 [ISSUE #4776]Support tag in litepullconsumer assign mode (#4775)
* support tag for litepullconsumer at assign type

* support tag for litepullconsumer at assign mode

* with namespace

* fix typo

* add test case

* fix

* code style
2022-08-15 18:02:57 +08:00
mxsm 8dd07c8469 [ISSUE #4818] Fix AutoSwitchHAService code formate incorrect (#4819) 2022-08-13 00:13:10 +08:00
caigy dbcd37cd39 [ISSUE #4815] fix reconsuming messages in POP mode taking at least 2min 2022-08-13 00:09:27 +08:00
fuyou001 e5a71bb95f using caffeine replace guava cache (#4669)
* [ISSUE #4668] using caffeine replace guava cache

* [ISSUE #4668] fix cache miss

* [ISSUE #4725] fix enforce-ban-circular-dependencies  error
2022-08-11 20:16:34 +08:00
Li Zhanhui d17ba83f7a Revert "[ISSUE #4810] Correction of spelling mistakes in TimerMessageStore"
This reverts commit 9cc06bc14a.
2022-08-11 18:59:21 +08:00
赵福建 9cc06bc14a [ISSUE #4810] Correction of spelling mistakes in TimerMessageStore 2022-08-11 17:38:43 +08:00
sunhangdaandsunhangda 0375027b70 [ISSUE #4382]Namesrv nearby route (#4383)
* fix:when broker is down,async send model can not retry

* fix Issue #3556

* fix Issue #3556

* fix Issue #3556

* fix Issue #3556

* async send model success retry when occurs Exception

* test case testSendMessageAsync_WithException

* modify test case testSendMessageAsync_WithException

* adding exception message with broker addr when occuring broker connect
timeout

* repair code style

* in async mode,set ThreadExecutorPool AbortPolicy

* Optimize asynchronous send timeout logic code

* Adjusting log information

* Delete SendMessageProcessor.java

* 恢复上一个版本

* namesrv nearby route

* Revert to previous version code

* add lisence header to Network.java

* code style

* 根据broker和client配置的标识返回路由信息

* Delete greetings.yml

* Delete .gitignore

* reset previous version

* reset to previous version

* code style

* Namesrv nearby route implements all by RPCHook

* reset to prevous version

* ServiceProvider return to original position

* Nearby route make the code clear

* revert to ori version

* reset to ori version

* reset to ori version

* reset to ori version

* Keep same as the official version

* Keep same as the official version

* Keep same as the official version

Co-authored-by: sunhangda <sunhangda@lixiang.com>
2022-08-11 17:31:45 +08:00
mxsm 06ca14a508 [ISSUE #4791] Add elect master command for admin CLI (#4798) 2022-08-11 10:06:46 +08:00
cserwenanddengzhiwen1 9b87205c6d [ISSUE #4522] Fix topic route info not found in some case (#4523)
* fix topic route info not found in some case

* fix unit test about broker register

Co-authored-by: dengzhiwen1 <dengzhiwen1@xiaomi.com>
2022-08-10 13:42:12 +08:00
Guocheng Tang 79d89f74d5 fix typo (#4802) 2022-08-10 09:25:58 +08:00
mxsm ce274265db [ISSUE #4794] Fix deserialize ElectMasterResponseHeader attribute value of brokerMemberGroup is null (#4796) 2022-08-08 17:11:14 +08:00
Ji Juntaoand傅冲 705e717a09 [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode. (#4753)
* Replace scheduled message in Pop with timer message.

* add unit test.

* refactor

* WIP

* improve unit test

* improve unit test

* improve unit test

* fix unnecessary stubbing problem.

* fix misspelling 'replase' in doc.

* refactor and rebuild

* fix the bug of #4702

Co-authored-by: 傅冲 <yubao.fyb@alibaba-inc.com>
2022-08-08 16:00:25 +08:00
meateggmilk 1ff34371a6 remove unless exception (#4702) 2022-08-08 11:31:23 +08:00
Aaron Ai 61b14c3f4e [ISSUE #4785] Enable misspell check GitHub Action (#4786)
* Enable misspell check GitHub Action

* Fix typo
2022-08-08 09:28:41 +08:00
mxsm b145062308 [ISSUE #4789] Fix mqadmin CL print format is incorrect (#4795) 2022-08-07 17:44:42 +08:00
rongtong 0b6563b58f Add getControllerConfig and updateControllerConfig command for admin CLI (#4793) 2022-08-07 15:28:51 +08:00
mxsm 034d7389ba [ISSUE #4788] Improvement controller quick_start.md file (#4790) 2022-08-07 10:45:09 +08:00
mxsm 273f274ec8 [ISSUE #4781] Add config file for controller run as Namesrv plugin (#4787)
LGTM
2022-08-05 09:48:33 +08:00
mxsm b7ec511ccd [ISSUE #4698] NamesrvStartup code optimize (#4715) 2022-08-05 08:55:22 +08:00
lk 859bc15a68 [ISSUE #4783] remove handle from receiptHandleProcessor when forwardMessageToDLQ (#4784) 2022-08-04 20:08:12 +08:00
mxsm c506036cb6 [ISSUE #4745] Check controllerDLegerPeers and controllerDLegerSelfId attributes before create DLedgerServer (#4768) 2022-08-04 11:16:17 +08:00
rongtong c292574cd5 [ISSUE #4758] Timer Message adapts to slaveActingMaster mode (#4757)
* Timer Message adapts to slaveActingMaster mode

* Add asf-header to TimerCheckPointTest
2022-08-04 10:11:02 +08:00
rongtong 838854ffcd Remove useless GetRouteInfoRequestHeader.split constant to ensure compatibility (#4718) 2022-08-04 09:59:50 +08:00
mxsm 83f64a8b4d [ISSUE #4751] Optimize NettyRemotingAbstract#processRequestCommand code 2022-08-04 08:49:44 +08:00
mxsm c6b3a66ecf [ISSUE #4706] fix console printed log format is incorrect (#4716) 2022-08-03 09:19:03 +08:00
Jack Tsaiandtsaitsung-han.tht 0d1eec2b9c Update Description in .asf.yaml (#4765)
Co-authored-by: tsaitsung-han.tht <tsaitsung-han.tht@alibaba-inc.com>
2022-08-02 19:33:53 +08:00
neoguobiu 9e82930686 Update .asf.yaml (#4764) 2022-08-02 17:51:56 +08:00
Aaron Ai 566e85aef7 Some improvement about branch management (#4756)
1. protect develop/master branch
2. disable merge buttion for pull request
2022-08-02 14:44:03 +08:00
Jixiang Jin 1b450178ac Merge pull request #4763 from aaron-ai/feature/fix_metrics_collector_mode_config
Use string as the configuration parameter type of metrics collector mode
2022-08-02 14:21:52 +08:00
Aaron Ai 2331d2cff4 Use string as the configuration parameter type of metrics collector mode 2022-08-02 14:19:24 +08:00
Oliver 87918f13a4 [ISSUE #4167] Add unit test (EscapeBridgeTest、FilterServerManagerTest、PullRequestHoldServiceTest ) (#4722)
* add ut

* update unit test

* Add FilterServerManagerTest

* add PullRequestHoldServiceTest
2022-08-02 13:46:17 +08:00
mxsm 7cc5cf1fae [ISSUE #4748] Add attribute enableControllerInNamesrv to NamesrvConfig (#4760) 2022-08-02 08:50:56 +08:00
mxsm 1d59e21732 [ISSUE #4738] Semantic period variables value in BrokerController#initializeBrokerScheduledTasks method (#4761) 2022-08-02 08:48:17 +08:00