Commit Graph
303 Commits
Author SHA1 Message Date
hardyfish 94db42ade7 [ISSUE #6292] fix typos (#6293)
* fix typos

* fix typos

* fix typos
2023-03-15 15:41:01 +08:00
RongtongJin a240753951 Fix CleanControllerBrokerMetaSubCommand and ReElectMasterSubCommand parameter error 2023-03-14 09:40:15 +08:00
TheR1sing3un c94c65b691 fix(admin): fix incompatible command: CleanBrokerMeta
1. fix incompatible command: CleanBrokerMeta
2023-03-14 09:40:15 +08:00
RongtongJin c8bc4e84a0 Rename cleanBrokerData subCommand to cleanBrokerMetadata 2023-03-14 09:40:15 +08:00
RongtongJin 28618e95ab Polish the code structure and code style 2023-03-14 09:40:15 +08:00
RongtongJin bbf54f8a71 Modify StorePathMetadata to StorePathBrokerIdentity 2023-03-14 09:40:15 +08:00
TheR1sing3un 2515ea5f98 fix(admin): print masterBrokerId when calling GetSyncStateSet
1. print masterBrokerId when calling GetSyncStateSet
2023-03-14 09:40:15 +08:00
TheR1sing3un 03d6ba23e4 style(controller): remove unused import
1. remove unused import
2023-03-14 09:40:15 +08:00
TheR1sing3un f843851788 fix(controller): fix some bug to pass AutoSwitchRoleIntegrationTest
1. fix some bug to pass AutoSwitchRoleIntegrationTest
2023-03-14 09:40:15 +08:00
TheR1sing3un 11b2cb84a6 feat(broker): fix some bugs to successfully compile project
1. fix some bugs to successfully compile project
2023-03-14 09:40:15 +08:00
TheR1sing3un a1de567e11 [ISSUE#5045] Refactor the register and elect-master process in controller mode (#5046)
* refactor(controller): refactor the register logic

1. refactor the register logic

* refactor(controller): remove unused field in ElectMasterEvent

1. remove unused field in ElectMasterEvent

* feat(controller): add a tryElectMaster request and process logic about it

1. add a tryElectMaster request and process logic about it

* feat(controller): refactor ReplicasInfoManagerTest

1. refactor ReplicasInfoManagerTest

* refactor(controller): refactor DLedgerControllerTest

1. refactor DLedgerControllerTest

* refactor(controller): refactor ControllerManagerTest

1. refactor ControllerManagerTest

* refactor(controller): refactor ReplicasInfoManagerTest

1. refactor ReplicasInfoManagerTest

* refactor(controller): refactor register process and pass the junit test

1. refactor ReplicasInfoManagerTest

* style(broker): rename a constant

1. rename a constant

* feat(controller): update the DLedger dependency from v0.27 to v0.30

1. update the DLedger dependency from v0.27 to v0.30

* style(controller): add a white-line just for trigger GitHub action again

1. add a white-line just for trigger GitHub action again

* feat(controller): combine electMaster api and brokerTryElectMaster api

1. combine electMaster api and brokerTryElectMaster api

* feat(controller): add a logic about verifying the broker id returned from registering

1. add a logic about verifying the broker id returned from registering

* fix(controller): remove unused code and add a warning log in ControllerManager

1. remove unused code and add a warning log in ControllerManager

* fix: resolve conflicts

1. resolve conflicts

* fix(controller): remove unused class

1. remove unused class

* fix(controller): Resolve conflicts after merging

1. Resolve conflicts after merging

* refactor(controller): Refactor ReplicasInfoManager#elect

1. Refactor ReplicasInfoManager#elect

* style(controller): remove unused imports

1. remove unused imports

* style(controller): remove unused imports

1. remove unused imports

* fix(controller): resolve conflicts after merging develop branch

1. resolve conflicts after merging develop branch

* rerun

* fix(controller): resolve conflicts in ReplicasInfoManagerTest#testRegisterNewBroker after merging develop branch

1. resolve conflicts in ReplicasInfoManagerTest#testRegisterNewBroker after merging develop branch

* style(controller): pass style check

1. pass style check
2023-03-14 09:40:15 +08:00
loboxu 473e23b1dd Optimize command line tools QueryMsgByKey& QueryMsgTraceById 2023-02-27 12:46:48 +08:00
loboxu 72f458bccd Optimize command line tools QueryMsgByKey& QueryMsgTraceById 2023-02-27 12:46:48 +08:00
loboxu 254deb079a Command line tool QueryMsgByKey& QueryMsgTraceById:time range and number of data bars can be specified 2023-02-27 12:46:48 +08:00
zhouxiang 0f878b5157 [maven-release-plugin] prepare for next development iteration 2023-02-16 12:35:58 +08:00
zhouxiang b8e9334d2a [maven-release-plugin] prepare release rocketmq-all-5.1.0 2023-02-16 12:35:58 +08:00
zhouxiang 83d6778747 [ISSUE #6030] Update version to 5.1.0-SNAPSHOT 2023-02-16 12:35:58 +08:00
Misaki f09771a43c [ISSUE #6084] fixed a typo 2023-02-16 08:45:43 +08:00
rongtong abdf5dcb23 [ISSUE #6045] Fix the issue that the endoffset of entry obtained by getBrokerEpoch is incorrect (#6049)
* Fix the issue that the endoffset of entry obtained by getBrokerEpoch is incorrect

* Fix the issue that the endoffset of entry obtained by getBrokerEpoch is incorrect
2023-02-14 10:08:23 +08:00
Shuangxi Dingand徒钟 869ab5e20e [ISSUE #5975] Fix getUserTopicConfig Impl contains system topic (#5976)
Co-authored-by: 徒钟 <shuangxi.dsx@alibaba-inc.com>
2023-02-09 18:55:54 +08:00
rongtong 0ea930182c GetSyncStateSetSubCommand can also print that the broker is not in syncStateSet (#5935) 2023-01-28 10:08:51 +08:00
Aaron Ai f488e20dc9 Fix logback warning in rmq.tools.logback.xml 2023-01-20 11:52:11 +08:00
BaoCheng Wangandw30003204 5894332918 [ISSUE #5816] fix the issue that No response is returned when no parameter is configured for the brokerStatus command.(#5818) (#5818)
Co-authored-by: w30003204 <wangbaocheng@huawei.com>
2023-01-10 14:49:03 +08:00
rongtong fe59775e37 [ISSUE #5812] Fix the issue that static topic cannot be consumed normally (#5811)
* Fix the issue that static topic cannot be consumed normally

* Fix the issue that static topic cannot be consumed normally
2023-01-04 18:39:29 +08:00
SSpiritsandLi Zhanhui d3de48c806 [ISSUE #5605]Introduce tag estimation for lag calculation (#5606)
* Introduce tag estimation for lag calculation

Co-authored-by: Li Zhanhui <lizhanhui@gmail.com>

* fixed according to review comments

Co-authored-by: Li Zhanhui <lizhanhui@gmail.com>
2022-11-30 14:52:59 +08:00
zhangjidi2016andzhangjidi 48b7ece986 [ISSUE #4487] The trackType is wrong when the consumer in broadcasting subscription (#5609)
Co-authored-by: zhangjidi <zhangjidi@cmss.chinamobile.com>
2022-11-29 14:08:18 +08:00
zhangjidi2016andzhangjidi fdd77d1a0b [ISSUE #5562]Reset consumeOffset execution logic In a catch block,and is not executed under normal circumstances (#5563)
Co-authored-by: zhangjidi <zhangjidi@cmss.chinamobile.com>
2022-11-24 09:56:58 +08:00
Aaron Ai 4469fb51dd Update group id of rocketmq logging (#5564) 2022-11-22 11:31:21 +08:00
Aaron Ai a68078fef8 [ISSUE #5484] Replace logging module with the shaded logback (#5540)
* Replace logging module with the shaded logback

* Add license header

* Fix bazel compile issue
2022-11-21 16:30:15 +08:00
rongtong d781271654 Move the header of the controller to the upper layer (#5550) 2022-11-20 21:51:32 +08:00
yukon 506b563f55 Revert "[ISSUE #5484] Replace Logging Module with Shaded Logback (#5524)" (#5537)
This reverts commit 809ff6b3e0.
2022-11-17 20:04:17 +08:00
陈永明andchangfeng b2de9e1cdf fix: DefaultMQAdminExt setting socksProxy has no effect (#5533)
Co-authored-by: changfeng <yongming.cym@alibaba-inc.com>
2022-11-17 00:39:57 +08:00
Aaron AiandLi Zhanhui 809ff6b3e0 [ISSUE #5484] Replace Logging Module with Shaded Logback (#5524)
* Remove ClientLogger

* WIP

* WIP

* Rename logger to log

* Make it compile

* WIP

* Fix bazel to use shaded slf4j

* Fix DeleteExpiredCommitLogSubCommandTest

* Fix pom.xml duplication

* Fix maven deps

* Add test logback configuration file

* Fix unit test output

* Fix logback configuration file

* All logging are made on top of slf4j

* Fix test log configuration file name

* Fix test log configuration file name for test module

* All logging are shaded slf4j targeted

* DLedger has an explicit dependency on slf4j

* Fix DLedger

* Fix DLeader issue

* Move logback configuration files to each module

Co-authored-by: Li Zhanhui <lizhanhui@gmail.com>
2022-11-17 00:38:28 +08:00
Humkum 48fab975e4 Fix : the topic attribute will be replace by null (#5527) 2022-11-16 20:28:29 +08:00
SSpiritsandLi Zhanhui ec5d3236f6 invert dependency between remoting and common module (#5503)
* invert dependency between remoting and common module

* fix bazel

* Fix Bazel warning of indirect dependency

* remove duplicate class ServiceThread

* fix conflict

* revert delete class ServiceThread because of introduced by dledger

Co-authored-by: Li Zhanhui <lizhanhui@gmail.com>
2022-11-11 13:34:31 +08:00
lizhiminsand斜阳 2113c16ebc [RIP-48] Support reset offset in server-side for pop message (#5457)
* [RIP-48] Support reset offset in server-side for pop message

* [RIP-48] Support reset offset in server-side for pop message

* no need remove error log

Co-authored-by: 斜阳 <terrance.lzm@alibaba-inc.com>
2022-11-07 13:55:03 +08:00
mxsm 520721d527 [ISSUE #5426] Fix mqadmin updateTopic CLI result print format problem (#5427) 2022-10-31 10:34:17 +08:00
a7c1d49454 [ISSUE #5356] [RIP 48] Introduces the concept of ready and inflight messages (#5357)
* Introduces the concept of ready and inflight messages

* update consumer progress subcommand

* fix consumer pull offset is less than consumer offset

* remove unused import

Co-authored-by: 斜阳 <terrance.lzm@alibaba-inc.com>
Co-authored-by: ShadowySpirits <admin@lv5.moe>
2022-10-26 15:41:41 +08:00
ltamber e38da5590f [ISSUE #3799]main compaction process (#5351)
* add compaction delete policy

* wrapper message ext encoder

* fix

* cleanup policy

* cleanup policy

* wrapper message ext encoder

* Revert "cleanup policy"

This reverts commit da76a4820b.

* cleanup policy

* topic compaction

* compaction recovery and user document

* use cleanup policy

* fix
2022-10-24 16:21:39 +08:00
mxsm 06a5496933 [ISSUE #5324]Replace deprecated class PosixParser with DefaultParser for CLI (#5325)
* [ISSUE #5324]Replace deprecated class PosixParser with DefaultParser for CLI

* fix bazel compile UpdateAccessConfigSubCommandTest testExecute failures

* Fixed bazel compile UpdateAccessConfigSubCommandTest testExecute failures
2022-10-19 22:43:06 +08:00
lizhiminsand斜阳 d663bcf6aa [ISSUE #5292] [RIP-48] Support reset offset in server-side to improve the success rate (#5293)
* [RIP-48] Support reset offset in server side to improve the success rate

* [RIP-48] Support reset offset in server side to improve the success rate

* [RIP-48] Fix code style

* fix unit test

* no need put offset in reset command header

Co-authored-by: 斜阳 <terrance.lzm@alibaba-inc.com>
2022-10-14 14:02:08 +08:00
mxsm db1f1839b9 [ISSUE #5298]Polish code style for jdk8+ (#5308) 2022-10-14 11:44:21 +08:00
NowinkeyandZhanhui Li 53e0847528 [ISSUE #5204] Enable checkstyle for test code (all module) (#5297)
* delete the checkstyle plugin for child modules

* [ISSUE #5204] Enable checkstyle for test code (all module)

* Exclude generated files

Co-authored-by: Zhanhui Li <lizhanhui@apache.org>
2022-10-14 10:58:48 +08:00
Zhanhui Li d8c2930a20 [ISSUE #5276] Use OS pick-up port (#5280)
* Use OS pick-up port

* Replace deprecated PosixParser with DefaultParser for cli argument parsing

* DefaultParser cannot parse values that contain '=' character

* Revert changes to ServerUtil
2022-10-12 11:10:51 +08:00
rongtong 12e29df6db Fix the issue that AutoSwitchRoleIntegrationTest is flaky (#5277) 2022-10-11 18:44:22 +08:00
Nowinkey a5725c6b85 [ISSUE #5219] Enable checkstyle for test code (rocketmq-acl and rocketmq-tools) (#5220)
* style(acl):Enable checkstyle for test code

* style(tools):Enable checkstyle for test code
2022-09-29 11:46:56 +08:00
lizhimins 2c6ea9eeaf [ISSUE #5198] Fix NPE in ClusterList SubCommand (#5199) 2022-09-28 11:07:22 +08:00
lizhimins b8607d917c [ISSUE #5095] Support socks proxy in remoting client (#5123) 2022-09-28 10:22:55 +08:00
Zhanhui Li 5723b97964 [ISSUE #5126]Make all tests in ACL module pass on Windows (#5127)
* Make all tests pass on Windows

* Run in serial
2022-09-26 17:47:19 +08:00
zhoubo 251fc77957 Merge branch 'develop' into release-5.0.0 2022-09-23 10:28:18 +08:00