Commit Graph
521 Commits
Author SHA1 Message Date
TheR1sing3un c494a43c52 refactor(controller): optimize some code suggested by reviewer
1. optimize some code suggested by reviewer
2023-03-14 09:40:15 +08:00
TheR1sing3un 1293b74153 feat(broker): perfect ReplicaManagerTest.java
1. perfect ReplicaManagerTest.java
2023-03-14 09:40:15 +08:00
TheR1sing3un e38ea9510a feat(controller): refactor broker's information recording core from ip address to broker id
1. refactor broker's information recording core from ip address to broker id
2023-03-14 09:40:15 +08:00
hardyfish 5c45294c45 [ISSUE #6189] Replace ThreadFactory create (#6190)
* Replace ThreadFactory create

* delete unnecessary imports

* remove useless import

* reformat code
2023-03-08 20:24:30 +08:00
Zhouxiang Zhan 1986c6bdf9 [ISSUE #6207] Use static subscription to calculate consumer lag and latency
* Fix retryTopicPerm in ConsumerLagCalculator

* [ISSUE #6206] Use static subscription to calculate consumer lag and latency

* Add version for SimpleSubscriptionData

* Fix hashcode and equals for SubscriptionGroupConfig

* remove brokerId in equal and hashcode method

* Add getter setter for version

* fix consumerGroupInfo and getSubscriptionDataSet npe
2023-03-08 15:47:20 +08:00
yuz10 4af6c768fc [ISSUE #6157] Fix incompatibility between 4.x and 5.x in message trace 2023-03-07 08:39:37 +08:00
echooymxq 527350decf Polish the unified remoting logger name. 2023-02-23 15:10:35 +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
zhouxiang f9a4dfb351 [ISSUE #6030] Prepare to release Apache RocketMQ 5.1.0 2023-02-15 13:42:40 +08:00
zhouxiang 242c7249af [ISSUE #6030] Prepare to release Apache RocketMQ 5.0.1 2023-02-14 17:51:45 +08:00
nowinkey 07e65d37d0 Put batchDispatchRequestThreadPoolNums config to MessageStoreConfig.java 2023-02-14 13:50:47 +08:00
nowinkey c2ea0922b7 Remove enableBuildConsumeQueueConcurrently attribute from BrokerConfig class 2023-02-14 13:50:47 +08:00
nowinkey dcf84e4125 Add integration test and add enableBuildConsumeQueueConcurrently attribute to BrokerConfig class 2023-02-14 13:50:47 +08:00
nowinkey b92a29e135 Create ConcurrentReputMessageService and replace native thread with ServiceThread 2023-02-14 13:50:47 +08:00
mxsm 65737a0d0e [ISSUE #5979] Fix FAQ url incorrect in FAQUrl class (#6035) 2023-02-12 16:04:38 +08:00
mxsm 4a6dc040bd [ISSUE #5907] Optimize try catch to prevent ConcurrentHashMapUtils init failed (#5908)
* [ISSUE #5907]optimize try catch to prevent ConcurrentHashMapUtils init failed

* polish code style
2023-02-11 17:42:36 +08:00
mxsm 2545b783d0 [ISSUE #5924] Optimize UtilAll#sleep method (#5925)
* [ISSUE #5924]Optimize UtilAll#sleep method

* polish code
2023-02-05 16:54:12 +08:00
Xinda 0c26369a0d refactor: simplify getPID (#5962) 2023-02-02 11:15:29 +08:00
rongtong 5a43f1d5ef [ISSUE #5921] Support domain resolution to obtain the controller address (#5922)
* Support domain resolution to obtain the controller address

* Remove useless import

* Fix testLookupAddressByDomain can not pass

* Fix typo error
2023-01-28 08:53:50 +08:00
yuz10 a961a9b37b [ISSUE #5905] fix config file disappear after vm crash 2023-01-20 13:11:30 +08:00
mxsm 7cbdad378e [ISSUE #5885] Fix FAQurl's class FAQ url incorrect (#5886) 2023-01-17 16:05:47 +08:00
mxsm 617ba4471b [ISSUE #5880] Remove useless attribute TOPIC_KEY_SPLITTER in MessageClientIDSetter class (#5881) 2023-01-15 16:56:11 +08:00
RagingSpud e0ed87dc9c [ISSUE #5740] Fix util.getIP sometimes choose localhost over LAN ip. (#5856) 2023-01-14 21:43:04 +08:00
mxsm 7c128a5f0a [ISSUE #5708] Fix NamesrvStartup can't print config when use -p command (#5709) 2023-01-12 10:49:06 +08:00
mxsm fa22a78387 [ISSUE #5507] Improve the speed of AttributeParser#parseToMap parsing (#5508) 2023-01-12 10:41:25 +08:00
mxsm d070d467a6 [ISSUE #5802]Optimize HashMap and HasSet invoke resize method (#5803) 2023-01-03 10:32:36 +08:00
xiaoyifang e986534728 [ISSUE #5699] remove duplicate code definition of UtilAll.isBlank (#5700)
* [ISSUE #5699] remove duplicate code definition of UtilAll.isBlank

* [ISSUE #5699] remove duplicate code definition of UtilAll.isBlank
2022-12-29 15:17:58 +08:00
SSpiritsandLi Zhanhui 9f8e85bb76 [ISSUE #5754] [RIP-57] Add asynchronous interfaces to MessageStore (#5755)
* [RIP-57] Add asynchronous interfaces to MessageStore

* fix unit test

* Modified according to review comments

* Remove unnecessary stubbing

* Add some other methods to MessageStore

* fix bazel test

* Skip failing test case

Signed-off-by: Li Zhanhui <lizhanhui@gmail.com>

Signed-off-by: Li Zhanhui <lizhanhui@gmail.com>
Co-authored-by: Li Zhanhui <lizhanhui@gmail.com>
2022-12-29 09:42:45 +08:00
rongtong 646d04f425 [ISSUE #5712] Fix the invalid of heartbeat detection after controller switch (#5711)
* Fix the invalid of heartbeat detection after controller switch

* Pass the checkstyle

* Format ReplicasInfoManagerTest code style
2022-12-21 10:36:57 +08:00
zhouxiang b713aebfa7 [ISSUE #5485] Fix by code review 2022-12-09 19:53:18 +08:00
zhouxiang 9897e74a6c [ISSUE #5406] Overwrite sysFlag to broker 2022-12-09 19:53:18 +08:00
kaiyi.lk 8a23c54a91 [ISSUE #5486] polish clean expire request in remoting server 2022-12-09 19:53:18 +08:00
zhouxiang 934f5b6576 [ISSUE #5406] Add processor for remoting messaging module 2022-12-09 19:53:18 +08:00
SSpirits 7cab0a1aad [ISSUSE #5589] record subscription from request (#5590) 2022-12-07 17:26:00 +08:00
lizhimins 49fc6eded9 [ISSUE #5568] Support long length group and topic for pop mode consumption (#5611)
* [ISSUE #5568] Support long length group and topic for pop mode consumption
Co-authored-by: 斜阳 <terrance.lzm@alibaba-inc.com>
2022-12-07 10:26:50 +08:00
Zhouxiang Zhan 62a959691c [ISSUE #5595] Add validateSystemTopicWhenUpdateTopic (#5596)
* [ISSUE #5595] Add validateSystemTopicWhenUpdateTopic
2022-11-30 17:10:25 +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
mxsm bbac18be73 [ISSUE #5602] Remove useless log attribute from BrokerConfig (#5603) 2022-11-27 21:57:54 +08:00
rongtong 6f49a1034d Enable AbortProcessException to interrupt RPCHook (#5594) 2022-11-25 20:35:20 +08:00
Aaron Ai ffb4a3664e Apply MDC in broker container mode (#5587) 2022-11-24 19:32:07 +08:00
hzh0425 93e82c8205 [ISSUE #5569]Support broker priority election for controller mode (#5548)
* Support broker priority election for controller mode

* fix comment of brokerElectionPriority

* Set "The lower the value of brokerElectionPriority, the higher the priority of the broker being selected as the master."
2022-11-24 12:59:34 +08:00
mxsm 7278653506 [ISSUE #5576]Optimize UtilAll#getPid method (#5582) 2022-11-24 09:51:53 +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
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
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
RapperCLanddinglei 1116de4f93 [ISSUE #5294]fix ClassLoad path optimization (#5295)
* loadClass optimization

* loadClass optimization

* code optimization

* code optimization

* Restore the original method, add method, reduce the impact

Co-authored-by: dinglei <libya_003@163.com>
2022-11-14 11:51:12 +08:00
echooymxq 407d2738f2 [ISSUE #5512] Skip the unnecessary network interfaces. (#5513) 2022-11-13 18:02:32 +08:00