370 Commits

Author SHA1 Message Date
qianye 97a797543b [ISSUE #10906] Prevent duplicate MQClientInstance creation (#10907) 2026-08-12 14:02:31 +08:00
fuyou001 51f9fcc493 [ISSUE #10817] Upgrade SpotBugs for JDK 21 compatibility (#10818) 2026-08-06 19:22:52 +08:00
Quan eddb235c1b [ISSUE #10722] Lite Topic may not be cleaned up when message store timestamp is unavailable (#10723) 2026-08-03 14:04:44 +08:00
Quan 10d498c68a [ISSUE-10546] Add default implementation for rejectRequest() in NettyRequestProcessor (#10547) 2026-06-25 10:22:35 +08:00
imzs 527273694e [ISSUE #10389] Fix or ignore several flaky tests of PopPriorityIT (#10390) 2026-06-04 15:52:20 +08:00
lizhimins 9443c6d9db [ISSUE #10383] Align Bazel dependencies with Maven pom.xml (#10404) 2026-05-29 10:04:20 +08:00
lizhimins 980f3d7f55 [ISSUE #10373] Quarantine flaky tests and add detection plan docs (#10374)
* [ISSUE #10373] Quarantine flaky tests and add detection plan docs

Ran all RocketMQ module tests 100x across 10 ECS nodes to identify
non-deterministic failures. Quarantined methods with @Ignore across
broker, client, filter, and tieredstore modules.

Flaky tests quarantined:
- broker: LiteLifecycleManagerTest#testCleanByParentTopic (2%)
- broker: ConsumerOrderInfoManagerLockFreeNotifyTest#testRecover (2%)
- broker: TransactionalMessageServiceImplTest#testDeletePrepareMessage_maxSize (1%)
- client: DefaultMQConsumerWithTraceTest#testPullMessage_WithTrace_Success (1%)
- client: DefaultMQLitePullConsumerWithTraceTest#testSubscribe_PollMessageSuccess_WithCustomizedTraceTopic (5%)
- client: DefaultMQLitePullConsumerWithTraceTest#testSubscribe_PollMessageSuccess_WithDefaultTraceTopic (6%)
- filter: BloomFilterTest#testCheckFalseHit (1%)
- tieredstore: IndexStoreServiceTest#queryCrossFileBoundaryTest (35%)
- tieredstore: IndexStoreServiceTest#concurrentGetTest (1.5%)

Additional changes:
- LiteLifecycleManagerTest: Switch to MockitoJUnitRunner.Silent
- Add flaky test detection plan docs (CN + EN)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [ISSUE #10373] Quarantine flaky PopPriorityIT and fix test cases

- Quarantine PopPriorityIT at class level (multiple methods fail
  intermittently with 'expected:<8> but was:<2>' due to async race)
- Fix ConsumerOrderInfoManagerLockFreeNotifyTest
- Fix IndexStoreServiceTest

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [ISSUE #10373] Fix flaky test detection plan docs path and naming

Move English doc from docs/cn/ to docs/en/ and rename both files
to match existing docs naming convention (underscore + PascalCase).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-25 17:36:36 +08:00
imzs 2c2cc921ba [ISSUE #10173] Support LMQ in CombineConsumeQueueStore without migration to RocksDB CQ (#10174) 2026-04-03 14:29:42 +08:00
yx9o 4c9f7a9139 [ISSUE #10159] Fix unstable tests in DefaultMQLitePullConsumerWithTraceTest (#10160) 2026-03-13 14:16:48 +08:00
qianye 7fe0349f71 [ISSUE #10063] Notification request adds subscription expression to support on-demand wake-up (#10064) 2026-02-05 10:55:32 +08:00
Quan 1b6a919bde [RIP-83] Lite Topic: A New Message Model (#9800)
Co-authored-by: imzs <imzs@foxmail.com>
Co-authored-by: zhouli11 <04081337@163.com>
2026-01-16 17:20:22 +08:00
yx9o 7cc077416e [ISSUE #9964] Rename intConfig method to initConfig (#9965) 2026-01-04 17:46:20 +08:00
imzs 79e700312a [ISSUE #9945] Use UniqueKey as TimerDelKey by default 2025-12-24 10:00:01 +08:00
imzs 0792474479 [ISSUE #9928] Add Priority IT for GRPC protocol 2025-12-19 09:39:16 +08:00
imzs bdae09ddf2 [RIP-80] #9928 Implementation of Priority Message (#9929)
* #9928 Implementation of Priority Message

* switch to fastjson2

Change-Id: I3620b00b79a77a93a7cf0fdfac857fb495638ca6

* fix bazel CI, upgrade rocketmq-proto to 2.1.1

Change-Id: Ia66cc7b14b89dc319044ced5ba349315e487c849

* Fix bazel CI

* fix CI, temporarily disable popKv in OffsetResetForPopIT

Change-Id: I0b406cf0ece5067de430c4404aaa1f2dd46edcba

---------

Co-authored-by: RongtongJin <user@example.com>
2025-12-18 10:18:25 +08:00
yx9o d7e27d6d69 [ISSUE #9396] Use fastjson2 in all modules (#9397)
* Use fastjson2 in all modules

* Update test

* Update test

* Update test

* Add serialization compatibility test tool class

* Update RemotingSerializableCompatTest.java

* Update RemotingSerializableCompatTest.java

* Update RemotingSerializableCompatTest.java

* Update BitSet problem

* Update

* Update

* Update test

* Update test

* Update BUILD.bazel

* Update BUILD.bazel

* Update test

* Update BitSet problem

* Add test

* Add compat test

* merge develop

* Update test

* merge develop
2025-12-04 19:09:08 +08:00
rongtong 73e8fdbdb8 [ISSUE #9699] Optimize shutdown process and resource management (#9700)
* Optimize shutdown process and resource management

- Improve BrokerController shutdown flow for graceful shutdown
- Optimize BrokerStartup startup and shutdown logic
- Enhance ClientHousekeepingService resource cleanup
- Improve shutdown handling for various processors
- Optimize resource management in storage layer components
- Enhance lifecycle management for statistics manager
- Improve shutdown flow for timer components

* Fix this.popMessageProcessor.getPopLongPollingService() not shutdown

* Fix test shutdown state transition issue

- Add proper null checks and exception handling in test cleanup
- Prevent IllegalStateException during test teardown
- Ensure graceful test cleanup without state conflicts

* Fix DefaultMessageStoreCleanFilesTest can not pass

* Fix CombineConsumeQueueStoreTest can not pass

* Polish the code

* Polish the code

* Ignore flaky test first
2025-09-17 19:21:49 +08:00
rongtong bb45b8f5f7 [ISSUE #9634] Improve BrokerContainer extensibility and module structure (#9635)
* Initially optimize the broker container structure

* refactor: Improve BrokerContainer extensibility and logging

This commit enhances the BrokerContainer module to improve code structure
and logging capabilities:

Key improvements:
- Polish the code structure to make BrokerContainer more extensible
- Improve container logging configuration and management
- Enhance BrokerBootHook for better hook management
- Update BrokerContainer and BrokerContainerProcessor for improved functionality
- Remove unused BrokerLogbackConfigurator to reduce complexity
- Update BrokerStartup and BrokerController for better container integration

Modified files:
- broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
- broker/src/main/java/org/apache/rocketmq/broker/BrokerStartup.java
- container/src/main/java/org/apache/rocketmq/container/BrokerBootHook.java
- container/src/main/java/org/apache/rocketmq/container/BrokerContainer.java
- container/src/main/java/org/apache/rocketmq/container/BrokerContainerProcessor.java
- container/src/main/java/org/apache/rocketmq/container/BrokerContainerStartup.java
- container/src/main/java/org/apache/rocketmq/container/logback/BrokerLogbackConfigurator.java (removed)

This refactoring improves the overall maintainability and extensibility
of the container module while maintaining backward compatibility.

* test: Add unit tests for BrokerContainer extensibility improvements

This commit adds comprehensive unit tests for the BrokerContainer
extensibility improvements introduced in this branch:

Key test coverage:
- BrokerBootHook system extensibility and proper hook execution
- Container configuration accessibility and management
- Container initialization and lifecycle management
- BrokerContainerProcessor integration
- Startup and shutdown sequence robustness
- Extension points and customization capabilities

These tests ensure that the improved BrokerContainer architecture
maintains backward compatibility while providing enhanced extensibility
for future development and customization.

* Fix testBrokerGracefulShutdown can not pass

* Fix BrokerContainerExtensibilityTest can not pass

* fix(container): add missing auth module dependency

- Add //auth dependency to container target in BUILD.bazel
- Add //auth dependency to tests target in BUILD.bazel
- Fixes compilation errors for AuthConfig class usage
- Resolves Bazel build failures in container module

Fixes: symbol not found org.apache.rocketmq.auth.config.AuthConfig
2025-09-09 16:12:43 +08:00
cvictory 1c23a8094a [ISSUE #9663] Adopt Maven's revision mechanism (requires Maven >= 3.5.0) (#9665)
Co-authored-by: cvictory <shengli.caosl@alibaba-inc.com>
2025-09-04 09:51:02 +08:00
Hongxu Xu 7ab7ddd6d2 [ISSUE #9609] Fix bazel CI and reduce dependencies (#9610) 2025-08-22 16:35:39 +08:00
Xu Chengxin be67d61223 [ISSUE #9447] Avoiding possible resource leaks in InputStream (#9459) 2025-06-30 14:31:04 +08:00
qianye 9d9431dc1c [ISSUE #9254] Add CombineConsumeQueue to support CQ migration (#9256)
Add CombineConsumeQueue to support CQ migration
2025-06-03 17:23:24 +08:00
lizhimins aecb97ec44 [maven-release-plugin] prepare for next development iteration (#9389) 2025-05-07 16:34:04 +08:00
lizhimins 29d90a4ff9 [maven-release-plugin] prepare release rocketmq-all-5.3.3 (#9388) 2025-05-07 09:48:32 +08:00
dingshuangxi888 ade18bb076 [ISSUE 9362] [RIP-77] Deprecate and Remove ACL 1.0 (#9363) 2025-04-30 15:02:55 +08:00
lizhimins 47fe6b2ba6 [maven-release-plugin] prepare for next development iteration (#9232) 2025-03-08 17:20:49 +08:00
lizhimins 2baaf044ea [maven-release-plugin] prepare release rocketmq-all-5.3.2 (#9231) 2025-03-08 14:07:17 +08:00
imzs 19393e0475 [ISSUE #8974] Add feature switch of recalling, disable by default (#9067) 2024-12-27 13:56:09 +08:00
imzs bfb3d17ef1 [ISSUE #8974] Support recalling of delay message (#8975) 2024-12-09 16:56:12 +08:00
Zhanhui Li b86059c7c1 Support LMQ dispatch in case if Consume Queue Store is RocksDB-based (#8842)
* feat: support LMQ dispatch

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

* fix: introduce group-commit for batch insertion of RocksDB KV pairs

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

* fix: propagate store error to broker module

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

* chore: fix all Bazel warning and errors

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

* fix: remove unnecessary batch-ops when writing RocksDB using atomic flush

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

* fix: find a writable directory for RocksDB logs

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

* chore: clean up ConfigHelperTest

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

* fix: truncate consume queues in case commit log records are truncated

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

* fix: truncate LMQ max offsets

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

* fix: correct truncate boundary of consume queues

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

* fix: correct MessageExt encoding

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

* chore: remove unused import

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

---------

Signed-off-by: Li Zhanhui <lizhanhui@gmail.com>
Signed-off-by: Zhanhui Li <lizhanhui@gmail.com>
2024-10-23 09:56:37 +08:00
mawen12 c033c3e85f [ISSUE #8848] Fix log typo 2024-10-23 08:29:35 +08:00
rongtong 4f5f705f16 [ISSUE #8780] Implement asynchronous storage of ack/ck messages in pop consume to enhance performance (#8727)
* Pop consume asynchronization

* Pass UTs and ITs

* Pass the checkstyle

* Fix LocalGrpcIT can not pass

* Fix the UT can not pass

* Simplify duplicate methods in EscapeBridge
2024-10-16 13:39:27 +08:00
luozongle01 c826373598 [ISSUE #8798] Fix typo (#8799) 2024-10-10 09:52:45 +08:00
lizhimins daf3d1a666 [maven-release-plugin] prepare for next development iteration (#8750) 2024-09-26 09:33:52 +08:00
lizhimins b122c8109d [maven-release-plugin] prepare release rocketmq-all-5.3.1 (#8749) 2024-09-25 23:24:56 +08:00
rongtong cab4fdaec1 [ISSUE #8718] Fix flaky CreateAndUpdateTopicIT (#8717) 2024-09-20 13:53:37 +08:00
kissrain 6024db77f5 Fix typo in BaseConf (#8679)
Co-authored-by: 赤远 <jingyang.cjy@antfin.com>
2024-09-19 17:28:53 +08:00
小陈 e7eda2c957 [ISSUE #8668] Improve CI pipeline reliability with better log viewing and test fixes (#8667)
* Add sleep 3s after consumer shutdown to ensure queue rebanlance

* Add a step to upload test report

* Unified code style

* Unified mockito runner configuration to suppress UnnecessaryStubbingException
2024-09-09 16:32:19 +08:00
小陈 3368c06e6b [ISSUE #8643] Add an integration testing pipeline to current CI workflow (#8644)
* Add a it pipeline to workflows

* Trigger

* Rename it job

* Remove branch trigger

* Remove the step of uploading report
2024-09-05 10:13:02 +08:00
lizhimins 5dc0c6a8b5 [maven-release-plugin] prepare for next development iteration (#8382) 2024-07-09 01:30:43 +08:00
lizhimins 7ee50ec32e [maven-release-plugin] prepare release rocketmq-all-5.3.0 (#8379) 2024-07-08 23:15:33 +08:00
hqbfz 6b59155661 [ISSUE #7941] add override annotation (#7959)
* increase missing annotation

* Revert "increase missing annotation"

This reverts commit c1f3cef51d.

* increase missing annotation
2024-06-13 10:28:02 +08:00
cnScarb a15088cbd3 [ISSUE #8096] fix log placeholder 2024-05-07 09:49:43 +08:00
Zhouxiang Zhan c727f3a069 Fix notification integration test in pop consume mode (#7947) 2024-03-20 11:05:02 +08:00
dingshuangxi888 e1339ac8a0 [ISSUE #7560] [RIP-68] Support RocketMQ ACL 2.0 (#7725)
[ISSUE #7560] [RIP-68] Support RocketMQ ACL 2.0 (#7725)
2024-03-18 14:07:51 +08:00
rongtong f41160210a [maven-release-plugin] prepare for next development iteration (#7828) 2024-02-12 11:07:03 +08:00
rongtong 281a7b32f0 [maven-release-plugin] prepare release rocketmq-all-5.2.0 (#7827) 2024-02-11 17:53:50 +08:00
bazelisky af1936d93a [ISSUE #7715] Update Bazel toolchain to make the CI work (#7714)
* Update bazel toolchain

Signed-off-by: Bazelisky <bazelisk@hotmail.com>

* fix a bad test case as it violates requirement of ConcurrentHashMap#computeIfAbsent

Signed-off-by: Bazelisky <bazelisk@hotmail.com>

* Exclude flaky tests from test suite

Signed-off-by: bazelisky <155456828+bazelisky@users.noreply.github.com>

* fix: format issue

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

* fix: Remove unused import

* fix deps issue

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

* Expose data property of java_test, allowing to specify run_file

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

---------

Signed-off-by: Bazelisky <bazelisk@hotmail.com>
Signed-off-by: bazelisky <155456828+bazelisky@users.noreply.github.com>
Signed-off-by: Zhanhui Li <lizhanhui@gmail.com>
Co-authored-by: Zhanhui Li <lizhanhui@gmail.com>
2024-02-01 16:52:55 +08:00
landonchan90 06e22b4b42 [ISSUE #7765] Fix unit test testEstimateLag
Co-authored-by: landonchan90 <landaonChan@163.com>
2024-01-31 17:39:30 +08:00
Zhouxiang Zhan 8a36471a19 [ISSUE #7543] Add enableRetryTopicV2 brokerConfig (#7734)
* Add enableRetryTopicV2
2024-01-11 11:11:53 +08:00