Commit Graph
315 Commits
Author SHA1 Message Date
hill 32733e7674 [maven-release-plugin] prepare for next development iteration 2022-06-20 16:17:12 +08:00
hill 06f2208a34 [maven-release-plugin] prepare release rocketmq-all-4.9.4 2022-06-20 16:16:54 +08:00
cnScarb fcfe26e444 [ISSUE #4037] Add DeleteExpiredCommitLogSubCommand (#4038)
* [ISSUE #4037] Merge with origin

* [ISSUE #4048] Add assertions for DeleteExpiredCommitLogSubCommandTest
2022-06-14 17:18:14 +08:00
cserwenanddengzhiwen1 b62d3b2fdb add a schedule task to update namesrv address (#4456)
Co-authored-by: dengzhiwen1 <dengzhiwen1@xiaomi.com>
2022-06-14 09:42:39 +08:00
caigy aacaf91539 Merge pull request #4152 from sunxi92/feature_update_global_white_addr
[#4151]Add option p to the updateGlobalWhiteAddr command.
2022-06-07 12:52:51 +08:00
Zhouxiang Zhan 1f4ef2b311 [ISSUE #4419] Upgrade maven-checkstyle-plugin to 3.1.2 (#4420)
* Fix incorrect indentation issue
2022-06-06 19:39:38 +08:00
7973f9ee5e [ISSUE #4377]Unnecessary null check before method call (#4378)
* Update .travis.yml

Depracated MODERATE noisy mail for dev@rocketmq.apache.org. Still Failing: apache/rocketmq#5670 (5.0.0-alpha-static-topic - 5ebc327) @dongeforever

* Updated Notice file to 2022 (#3735)

* Unnecessary_null_check_before_method_call

Co-authored-by: von gosling <vongosling@apache.org>
Co-authored-by: ZhangJian He <shoothzj@gmail.com>
Co-authored-by: tigerweili <tigerweili@tencent.com>
2022-06-06 11:18:11 +08:00
d5ca4d05c9 [iSSUE-4396] Support get all producer on one broker (#4395)
* Update .travis.yml

Depracated MODERATE noisy mail for dev@rocketmq.apache.org. Still Failing: apache/rocketmq#5670 (5.0.0-alpha-static-topic - 5ebc327) @dongeforever

* Updated Notice file to 2022 (#3735)

* add api: get all producer in one broker

* add license header for new files

* add test case and optimize some variables

* remove unused imports and change some words to English

* fix code style

* update code style

* update code style

Co-authored-by: von gosling <vongosling@apache.org>
Co-authored-by: ZhangJian He <shoothzj@gmail.com>
Co-authored-by: tigerweili <tigerweili@tencent.com>
2022-06-04 22:35:24 +08:00
Ni Ze 0bc3b991e1 [ISSUE #4226] Message length exceeds the maximum length when sendback (#4338)
* fix(bug)msg length exceeds the maximum length when sendback

* fix(store) MessageStoreConfig: maxMessageBodySize -> maxMessageSize, for compatibility

* style(formatting) commigLog
2022-06-01 13:51:07 +08:00
Aaron Ai 65a8525a60 Formatting code of maven dependencies management (#4371) 2022-05-25 12:53:19 +08:00
sunxi 53baee7803 Add option p to the updateGlobalWhiteAddr command to indicate the full path of the ACL configuration file to be modified.If the option is null, updateGlobalWhiteAddr command will update the default acl configuration file. 2022-05-24 22:42:58 +08:00
Oliver 82a48be00a [ISSUE #4335] Replace deprecated api in cl 2022-05-19 14:31:03 +08:00
hzh0425 eaf0ce0991 [ISSUE # 4308] Make some variables to be final in brokerController 2022-05-14 11:34:45 +08:00
hzh0425 bee73b3a4d [ISSUE #4310] Optimize serviceProvider's code 2022-05-14 11:32:44 +08:00
caigy 9445b78875 [ISSUE #4304] Fix license check failures 2022-05-13 16:14:42 +08:00
huangliandyuz10 3cbb3b8ea5 [ISSUE 3585] [Part B] Improve encode/decode performance (#3588)
* [ISSUE 3585] [Part B] Improve header encode/decode performance

* [ISSUE 3585] [Part B] Improve RocketMQSerializable performance with zero-copy; fix securtiy problems.

* [ISSUE 3585] [Part B] Fix unit test

Co-authored-by: yuz10 <845238369@qq.com>
2022-04-27 09:26:10 +08:00
李晓双 Li Xiao Shuang 519c0b8a46 [ISSUE #4127] [BrokerOuterAPI] Anonymous new Runnable() can be replaced with lambda 2022-04-21 10:48:07 +08:00
Echoandxiongyujie 6fca4e866c [ISSUE #4160]remove the final modifier of a method which is already in a final class (#4163)
Co-authored-by: xiongyujie <xiongyujie@highlight.mobi>
2022-04-20 10:54:35 +08:00
cnScarb 9f7142bdd1 [ISSUE #4175] Prevent update topic on slave (#4176)
* Prevent update topic on slave

* Prevent update subscription group on slave
2022-04-19 10:24:04 +08:00
6U-U9 d100d3c9a5 [ISSUE #4167] Replace Charset.forName("UTF-8") with StandardCharsets.UTF_8 (#4024)
* Replace Charset.forName("UTF-8") with StandardCharsets.UTF_8

* Remove the specification of Charset according to SimplePullConsumer
2022-04-17 23:02:07 +08:00
刘月财 ead6274b3e fix mac 12+ slow bug (#4010) 2022-04-11 09:29:30 +08:00
李晓双 Li Xiao Shuang c5db5ac3e4 [ISSUE #4125] Anonymous new Runnable() can be replaced with lambda (#4031) 2022-04-06 22:02:00 +08:00
hjl11 c121565c3e [ISSUE #4040] Unnecessary toString methods deleted (#4041) 2022-03-28 10:15:43 +08:00
panzhiandpanzhi33 f7b4ce3a3f [ISSUE #4028] wrong log output (#4029)
* wrong log output

* wrong log output

Co-authored-by: panzhi33 <wb-pz502261@alibaba-inc.com>
2022-03-25 09:30:01 +08:00
wangfan adbf3db717 [ISSUE #3955] delete useless check 2022-03-14 20:17:42 +08:00
tianliuliu 40d9505786 [ISSUE #3957] Fix LmqConsumerOffsetManager deserialize error (#3958)
LmqConsumerOffsetManager deserialize error (#3958)
2022-03-11 15:29:53 +08:00
tigerlee b606d9c638 [maven-release-plugin] prepare for next development iteration 2022-02-22 00:25:55 +08:00
tigerlee c7989f8574 [maven-release-plugin] prepare release rocketmq-all-4.9.3 2022-02-22 00:25:37 +08:00
sunxi92 c1bb6aa27b [ISSUE #2986] Support for multiple ACL files in a fixed directory (#3761)
* acl temp

* acl

* fix test case

* fix code style issues

* add considerations on compatibility to the original one ACL config file and scalability of supporting multiple config files in different directories.

* fix test case testWatch

* 1.fix some issues
2.add a detailed design document

* Add warn log when the accesskey is repeated in multiple ACL files.

* 1.Change the folder of acl configuration to conf/acl
2.Add the logic to check if path is a directory in the method of getAllAclFiles(String path)

* Add a parameter in AclFileWatchService constructor.

* Add logic to determine if path exists in the getAllAclFiles(String path) method in PlainPermissionManager.java and AclFileWatchService.java

* Fix the serialization problem of allAclFileVersion field in clusterAclConfigVersion command

* 1.Fix the serialization problem of allAclFileVersion field in clusterAclConfigVersion command
2.Improve the logic of updateAccessConfig method
2022-02-19 09:52:31 +08:00
huangli 8fa9ca592c [ISSUE 3825] Use default SO_SNDBUF/SO_RCVBUF/WRITE_BUFFER_WATER_MARK value. (#3826)
This commit may greatly increase thoughtput when network lantency is big or message size is big, especially for consumer.

In one broker (M/S sync master async flush), one producer send test.

250 byte body: 0.93x old version
4000 byte body: 3.85x of old version
16000 byte body: 6.07x of old version
100000 byte body: 7.93x of old version

The old version is 4.9.3-SNAPSHOT in this test. In this test the network latency from producer to broker is 1.61ms.
2022-02-10 11:15:04 +08:00
tianliuliu 14b63ee550 [RIP-28] light message queue(LMQ) (#3694) 2022-01-13 19:15:42 +08:00
ltamber 0b612ff813 [ISSUE #3223]Optimize startup script to support greater jdk version (#3224)
* support jdk9 and later version

* support jdk9 and later version
2022-01-12 11:16:10 +08:00
tiger lee ed5f4e4eac Merge pull request #3174 from zhangjidi2016/broker_log
[ISSUE #3173]Isolate Broker logs when multiple Broker services are deployed on the same machine.
2022-01-07 10:14:45 +08:00
XiaoyiPeng 92bf68cb77 [ISSUE #3687] Fix wrong method comment about transaction message. 2021-12-31 17:23:26 +08:00
xujianhai666 86c1216957 [ISSUE #1843] fix: broker panic when producer send to retry topic (#1844)
producer send message to retry topic directly, broker will panic
because maxReconsumeTimes is null and convert to int.

add null check for maxReconsumeTimes

Closes #1843
2021-12-20 21:54:02 +08:00
rongtong a2d94242f3 Fix bug that the broker will hang after merge the pr that fix the headWaitTimeMills of sendThreadPoolQueue (#3631) 2021-12-15 20:09:34 +08:00
huangli 5081d155f8 [ISSUE #3637] Add enableDetailStat in BrokerConfig so we can disable stat of queue level. (#3638)
[ISSUE #3637] Add enableDetailStat in BrokerConfig so we can disable stat of queue level.
2021-12-15 20:03:23 +08:00
panzhi fcb2486f1b [ISSUE #3627]org.apache.rocketmq.broker.processor.SendMessageProcessorTest#testProcessRequest_WithMsgBack failed (#3629) 2021-12-11 16:31:57 +08:00
zhaohaiandzh378814 cbf9b2a290 [ISSUE #3602] add AdminBrokerProcessor Test (#3599)
* add test

* add testGetAllDelayOffset

* remove test

Co-authored-by: zh378814 <wb-zh378814@alibaba-inc.com>
2021-12-10 11:19:19 +08:00
codingandzanglei 38b20fb6a1 [ISSUE 3585] [Part H] Avoid unnecessary StringBuilder resizing on critical path (#3612)
Co-authored-by: zanglei <zanglei@kuaishou.com>
2021-12-10 10:06:40 +08:00
1e314f4100 [ISSUE #3593] entrySet() replace keySet() (#3595)
* entrySet() replace keySet()

* update variable name

* Update AllocateMachineRoomNearby.java

* remove set

Co-authored-by: zh378814 <wb-zh378814@alibaba-inc.com>
Co-authored-by: yuz10 <845238369@qq.com>
2021-12-09 15:13:13 +08:00
zhaohaiandzh378814 a779d69862 Unnecessary boxing of primitives (#3596)
Co-authored-by: zh378814 <wb-zh378814@alibaba-inc.com>
2021-12-07 12:35:43 +08:00
彭小漪 87b0be0001 [ISSUE #2516]: Fix the value of sendThreadPoolQueueHeadWaitTimeMills is 0 most of the time (#3509) 2021-11-24 10:44:42 +08:00
Git_Yang 2d9a7e1215 [ISSUE #3463] Fix the issue of commitLog path error (#3464) 2021-11-10 19:39:25 +08:00
lushilinandlushilin fe72057abc fix(broker): can not clear topic unitSubFlag (#3429)
Co-authored-by: lushilin <lushilin.me@bytedance.com>
2021-11-04 14:07:11 +08:00
shendongsd 2385f04468 [ISSUE #3381] Fix bug of when role change but not register again (#3442) 2021-11-03 14:12:29 +08:00
alitor 6b8a2b2fce trivial cleanups (#3403) 2021-10-26 13:44:23 +08:00
tigerlee 21faa68b4c [maven-release-plugin] prepare for next development iteration 2021-10-22 13:44:14 +08:00
tigerlee c840b20833 [maven-release-plugin] prepare release rocketmq-all-4.9.2 2021-10-22 13:43:57 +08:00
Git_Yang c6a4b822ef [ISSUE #3384] Add SendBack message to SCHEDULE_TOPIC_XXXX stats #3385
Signed-off-by: zhangyang21 <zhangyang21@xiaomi.com>
2021-09-27 14:02:21 +08:00