Caideyipi opened a new pull request, #19062:
URL: https://github.com/apache/iotdb/pull/19062

   ## Description
   
   PR #18738 lets consumers whose assigned regions are idle borrow ready events 
from regions assigned to other consumers. This can send events from one region 
to multiple consumers and reorder downstream processing in streaming window 
workloads.
   
   Add the startup setting `subscription_consensus_fallback_polling_enabled`. 
It defaults to `true` to preserve existing behavior. Set it to `false` in 
DataNode configuration and restart the DataNodes to restrict polling to each 
consumer's assigned regions. Normal ownership reassignment remains unchanged.
   
   Regression tests cover configuration loading, retaining the existing enabled 
fallback, disabling borrowing when assigned regions are empty, and disabling 
borrowing when a consumer owns no regions. They also verify that the assigned 
owner can still consume ready events when fallback polling is disabled.
   
   ## Validation
   
   - `mvn spotless:apply -P with-integration-tests -pl 
iotdb-core/node-commons,iotdb-core/datanode`
   - `mvn clean test -pl iotdb-core/datanode -am 
-Dtest=CommonDescriptorSubscriptionFallbackPollingTest,ConsensusSubscriptionBrokerPayloadLimitTest,ConsensusSubscriptionBrokerOwnershipTest
 -Dsurefire.failIfNoSpecifiedTests=false -Dsurefire.excludes=`: 14 tests passed.
   - `mvn clean test-compile -pl iotdb-core/datanode -am -P with-zh-locale 
-DskipTests`
   
   - [x] Self-reviewed.
   - [x] Added regression tests for the new setting and polling behavior.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to