Commit Graph

7411 Commits

Author SHA1 Message Date
zhaows f8bf7bd38b Fixed improper punctuation in Chinese documents. (#5031)
Change the punctuation to Chinese.
2022-09-09 09:14:15 +08:00
mxsm ed9c775ee3 [ISSUE #4999] Optimize ConcurrentMap#computeIfAbsent performance on jdk1.8 a workaround (#5008) 2022-09-08 20:50:32 +08:00
SSpirits 4fa29b94a9 [ISSUE #5013] allow broker to bind specified network interface (#5014)
* allow broker to bind specified network interface

* remove bind ip check

* Improve pull request

* Log the listening InetAddress on remoting server started

Co-authored-by: Zhanhui Li <lizhanhui@apache.org>
2022-09-08 14:08:49 +08:00
zhangjidi2016 ad72dbee54 [ISSUE #5022] Optimize DefaultMQAdminExtImpl (#5023)
Co-authored-by: zhangjidi <zhangjidi@cmss.chinamobile.com>
2022-09-08 11:00:26 +08:00
meateggmilk f1e95cd266 [ISSUE#5015] Fix typo of getAllCongestNum in TimerMessageStore
Co-authored-by: shizhili <shizhili@cmss.chinamobile.com>
2022-09-08 09:21:05 +08:00
Aaron Ai 831888d5c0 Remove 'high priority' from exempt-issue-labels (#5011) 2022-09-07 10:41:51 +08:00
Aaron Ai ba4ec9ffad Close stale issues/PRs (#4925) 2022-09-07 10:10:40 +08:00
Aaron Ai a5d07e106a Enable codeql analysis (#5006) 2022-09-06 21:48:45 +08:00
windWheel ee1e542e11 [ISSUE#4949] fix Address already in use (#5000)
* [flaky-test] fix Address already in use'

* Re-apply for a port when the port is occupied
2022-09-06 19:54:34 +08:00
zhangjidi2016 10e8e6b8ae [ISSUE #4487]The trackType is wrong when the consumer in broadcasting subscription (#4981)
Co-authored-by: zhangjidi <zhangjidi@cmss.chinamobile.com>
2022-09-06 13:48:10 +08:00
Zhanhui Li 35ac588fb5 [ISSUE #4979] Fix flaky integration test NormalMessageSendAndRecvIT (#4980)
* Fix netty warning; Fix flaky integration test NormalMessageSendAndRecvIT; Fix naming typo

* Change log level

* Use awaitability to make everyone happy

* Do not submit tasks when executor has been shut down
2022-09-05 14:27:01 +08:00
CoedPig 8357cff101 [ISSUE #5002]Fix code style in any net modules. (#4989)
* 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

* fix excessive nesting

* Update client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java

* update maven-surefire-plugin.version from 2.19.1 to 2.22.1

* Revert "update maven-surefire-plugin.version from 2.19.1 to 2.22.1"

This reverts commit 37fabe6e78.

* Code Style: fix warn info from the code detector.

* fix checkstyle: not use '*' for import.

* Fix code style in any net modules.

* change method name from topicRouteDataIsChange to topicRouteDataChanged in TopicRouteData.java

* revert executeInvokeCallback method

* Fix grammar issues

Co-authored-by: shanpengyu <shanpengyu@bytedance.com>
Co-authored-by: Aaron Ai <yangkun.ayk@gmail.com>
Co-authored-by: Zhanhui Li <lizhanhui@apache.org>
2022-09-05 13:38:26 +08:00
echooymxq 7361de7854 Sort the property when persist config. (#4970) 2022-09-05 13:01:16 +08:00
Shengmin Wang 3739327915 [ISSUE#4599] Optimize enableBackpressureForAsyncMode not relying on NettyRemoting (#4601)
* optimize backpressure, add on-going thread nums and message size limit

* modify send mechanism, reserve threadpool in backpressure mode

* modify library reference style

* modify code style

* modify default semaphoreAsyncSize as 100M

* move semaphore to DefaultMQProducerImpl, expose the integer value in DefaultMQProducer

* modify code style

* add blank to trigger CI test

* add check condition, keep timeout - costTime is active

* add semaphoreAsyncSendNum and semaphoreAsyncSendSize limit

* add semaphoreAsyncSendNum and semaphoreAsyncSendSize limit
2022-09-05 11:46:12 +08:00
Aaron Ai b2f30272c8 Fix BrokerOuterAPITest#test_register_timeout (#4978) 2022-09-05 11:29:13 +08:00
hYang b89a4009cf fix wrong log warning (#4984)
* fix log warning

* Polish log text on network I/O error

Co-authored-by: Zhanhui Li <lizhanhui@apache.org>
2022-09-05 10:58:57 +08:00
Oliver 801639163d [ISSUE #4585] PlainPermissionManagerTest add unit test (#4637)
* [Issue #4585] Add unit test

* update path to support windows and not print SecretKey
2022-09-05 10:22:51 +08:00
mxsm 4f0636a2d9 [ISSUE #4987] fix test case:PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig (#4988) 2022-09-05 08:38:17 +08:00
mxsm 2cc3f462b3 [ISSUE #4995] Fix test case:BrokerPathConfigHelperTest#testGetLmqConsumerOffsetPath (#4996) 2022-09-05 08:36:12 +08:00
mxsm a3e54fcb1b [ISSUE #4993] Polish the documents for mq Dledger Quick Deployment (#4994) 2022-09-05 08:27:48 +08:00
mxsm d0595743b7 [ISSUE #4985]Fix TimerMetrics#persist tmpFile can't rename to configFile (#4986) 2022-09-04 11:02:48 +08:00
rongtong 8517a5d6bd Remove useless import in proxy module (#4983) 2022-09-02 23:10:24 +08:00
Zhanhui Li 86e435419d [ISSUE: 4974]Fix name server client config when OS picks up available port (#4975)
* Fix name server client config when OS picks up available port

* Fix check style issue
2022-09-02 15:20:23 +08:00
Aaron Ai ec0426ca0e Fix DefaultLitePullConsumerTest#testConsumerCommitSyncWithMQOffset (#4973) 2022-09-02 15:00:09 +08:00
rongtong 9104d0e3da [ISSUE #4962] Polish the documents for consume queue and controller 2022-09-02 13:54:06 +08:00
mxsm 3529ea8b0c [ISSUE #4964] Adjust BrokerStatsManagerTest class package (#4967)
Co-authored-by: rongtong <jinrongtong5@163.com>
2022-09-02 13:06:34 +08:00
Aaron Ai 6da56d7714 Support multiple platform for github actuon runner (#4969) 2022-09-02 13:05:34 +08:00
Oliver d2349cb8a0 [ISSUE #4670] Modify package path and typo (#4671) 2022-09-01 21:59:28 +08:00
TheR1sing3un de7cd0df10 [ISSUE#4959] Fix the logic when deal with a write event with empty events
* fix(controller): fix the logic when deal with a write event with empty events

1. fix the logic when deal with a write event with empty events

* style(controller): remove unused import

1. remove unused import
2022-09-01 19:48:05 +08:00
khl 51b5cd1947 using take replace poll (#4754)
* using take replace poll

* Remove unused import

Co-authored-by: Zhanhui Li <lizhanhui@apache.org>
2022-09-01 19:47:53 +08:00
lizhiboo 00780abb99 [ISSUE #4963] Prepare to release RocketMQ 5.0.0 version 2022-09-01 17:53:29 +08:00
CoedPig 74bae190d5 fix code style in MQClientInstance (#4961)
* 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

* fix excessive nesting

* Update client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java

* update maven-surefire-plugin.version from 2.19.1 to 2.22.1

* Revert "update maven-surefire-plugin.version from 2.19.1 to 2.22.1"

This reverts commit 37fabe6e78.

* Code Style: fix warn info from the code detector.

* fix checkstyle: not use '*' for import.

Co-authored-by: shanpengyu <shanpengyu@bytedance.com>
Co-authored-by: Aaron Ai <yangkun.ayk@gmail.com>
2022-09-01 11:20:24 +08:00
lk cafb319612 [ISSUE #4938, ISSUE #4939] fix the concurrency problems when renew and ack/changeInvisibleTime at the same time; retry renew for a limited times when some error occurred (#4940) 2022-09-01 10:11:46 +08:00
zhaows c6820f23eb send async,time calculation rules Multiple method patches (#4881)
* Clear out meaningless changes

* merge upstream/dev

* merge upstream/dev

* send async,time calculation rules Multiple method patches

* Clear out meaningless changes

* merge upstream/dev

* merge upstream/dev

* send async,time calculation rules Multiple method patches
2022-09-01 09:44:27 +08:00
lk c11ed78eeb [ISSUE #4955] validate userProperties contain control character or not (#4956) 2022-09-01 09:41:28 +08:00
lk f77377f364 [ISSUE #4953] return INVALID_RECEIPT_HANDLE when cannot find the broker of handle (#4954) 2022-09-01 09:39:13 +08:00
lk 528b102a30 [ISSUE #4947] write client settings in lock and optimize the process of error handle (#4948) 2022-09-01 09:38:31 +08:00
TheR1sing3un f043ca8c18 [ISSUE#4950] fix wrong typo about DLedger (#4951)
* style(controller): fix the wrong typo about DLedger

1. fix the wrong typo about DLedger

* style(controller): fix the wrong typo about DLedger

1. fix the wrong typo about DLedger
2022-08-31 20:11:17 +08:00
lk b6191b8f5a [ISSUE #4943] not to assert time cost in test case (#4946) 2022-08-31 16:32:30 +08:00
CoedPig a940d96af0 Fix excessive nesting in MQClientInstance#sendHeartbeatToAllBroker (#4932)
* fix excessive nesting

Co-authored-by: shanpengyu <shanpengyu@bytedance.com>
Co-authored-by: Aaron Ai <yangkun.ayk@gmail.com>
2022-08-31 16:20:12 +08:00
rongtong 516e0d727b [ISSUE #4936] Remove useless log output after the master and slave broker are started on the empty disk in controller mode (#4944)
* Fix invalid log output after the master and slave broker are started on the empty disk in controller mode

* Remove useless log output after the master and slave broker are started on the empty disk in controller mode
2022-08-31 16:07:12 +08:00
rongtong f1f8bcbc8b [ISSUE#4936] Fix invalid log output after the master and slave broker are started on the empty disk in controller mode
[ISSUE#4936] Fix invalid log output after the master and slave broker are started on the empty disk in controller mode
2022-08-31 11:38:46 +08:00
Aaron Ai 4661e58ebe [ISSUE #4934] Checking for violations as part of build (#4935)
* Checking for violations as part of build

* Extend await time for FileWatchServiceTest#watchTwoFiles_ModifyOne
2022-08-31 10:55:04 +08:00
Aaron Ai f23fdbe016 Replace findbugs by spotbugs (#4931) 2022-08-30 17:45:56 +08:00
Zhanhui Li a488a0c22d [ISSUE 4926]Fix FileWatchServiceTest (#4927)
* Fix FileWatchService

* Fix all warnings and optimize FileWatchService implementation

* Take spurious wakeup into account
2022-08-30 14:24:46 +08:00
TheR1sing3un 7f25e453cd style(controller): fix the wrong typo about DLedger (#4930)
1. fix the wrong typo about DLedger
2022-08-30 13:38:26 +08:00
Zhanhui Li 5206354399 Restore use of pull request target for bazel github action pipeline (#4924) 2022-08-30 10:06:26 +08:00
mxsm 21fb9084ac [ISSUE #4920]Fix comment word typo (#4928) 2022-08-30 09:31:36 +08:00
TheR1sing3un 6a8b1aa96b [ISSUE#4917] Optimize the retry logic in appending a no-op request when controller change to leader (#4918) 2022-08-30 08:43:03 +08:00
mxsm cf74c3cd8b [ISSUE #4913] ReplicasManager#schedulingSyncControllerMetadata update controller metadata again after a while (#4914) 2022-08-29 20:42:28 +08:00