You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "Technoboy- (via GitHub)" <gi...@apache.org> on 2023/12/12 12:50:48 UTC

[PR] [fix][test] Fix flaky test FilterEntryTest.testFilter [pulsar]

Technoboy- opened a new pull request, #21713:
URL: https://github.com/apache/pulsar/pull/21713

   Fixes #21712
   
   ### Motivation
   
   The consumer should receive 10 msgs, but received is less than 10.
   
   Add some logs and find that the received time is short, so increase the received time.
   ```
   2023-12-12T14:47:47,632 - INFO  - [PulsarTestContext-executor-OrderedExecutor-0-0:Slf4jRequestLogWriter@62] - 127.0.0.1 - - [12/Dec/2023:14:47:47 +0800] "POST /admin/v2/persistent/prop/ns-abc/topicbd6c9c99-226e-4ff7-8c7c-e66af068aebc/subscription/sub/analyzeBacklog HTTP/1.1" 200 256 "-" "Pulsar-Java-v3.2.0-SNAPSHOT" 13
   2023-12-12T14:47:47,634 - INFO  - [main:FilterEntryTest@261] - received : 3:0:-1
   2023-12-12T14:47:47,675 - INFO  - [PulsarTestContext-executor-OrderedExecutor-0-0:PulsarMockBookKeeper@123] - Creating ledger 5
   2023-12-12T14:47:47,676 - INFO  - [main:FilterEntryTest@261] - received : 3:1:-1
   2023-12-12T14:47:47,679 - INFO  - [bookkeeper-ml-scheduler-OrderedScheduler-1-0:ManagedCursorImpl$31@3175] - [prop/ns-abc/persistent/topicbd6c9c99-226e-4ff7-8c7c-e66af068aebc] Updated cursor sub with ledger id 5 md-position=3:0 rd-position=3:10
   2023-12-12T14:47:47,774 - INFO  - [main:FilterEntryTest@261] - received : 3:2:-1
   2023-12-12T14:47:47,877 - INFO  - [main:FilterEntryTest@261] - received : 3:3:-1
   2023-12-12T14:47:47,988 - INFO  - [main:FilterEntryTest@261] - received : 3:4:-1
   2023-12-12T14:47:48,090 - INFO  - [main:FilterEntryTest@261] - received : 3:5:-1
   2023-12-12T14:47:48,192 - INFO  - [main:FilterEntryTest@261] - received : 3:6:-1
   2023-12-12T14:47:48,297 - INFO  - [main:FilterEntryTest@261] - received : 3:7:-1
   2023-12-12T14:47:49,445 - INFO  - [PulsarTestContext-executor-OrderedExecutor-0-0:PersistentSubscription@614] - [persistent://prop/ns-abc/topicbd6c9c99-226e-4ff7-8c7c-e66af068aebc][sub] scan took 2 ms - AnalyzeBacklogResult(entries=2, messages=2, filterRejectedEntries=0, filterAcceptedEntries=2, filterRescheduledEntries=0, filterRejectedMessages=0, filterAcceptedMessages=2, filterRescheduledMessages=0, scanOutcome=COMPLETED, firstPosition=3:8, lastPosition=3:9)
   2023-12-12T14:47:49,445 - INFO  - [PulsarTestContext-executor-OrderedExecutor-0-0:PersistentTopicsBase@1664] - [null] analyzeBacklog topic sub subscription persistent://prop/ns-abc/topicbd6c9c99-226e-4ff7-8c7c-e66af068aebc result AnalyzeSubscriptionBacklogResult(entries=2, messages=2, filterRejectedEntries=0, filterAcceptedEntries=2, filterRescheduledEntries=0, filterRejectedMessages=0, filterAcceptedMessages=2, filterRescheduledMessages=0, aborted=false, firstMessageId=3:8, lastMessageId=3:9)
   
   ```
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [fix][test] Fix flaky test FilterEntryTest.testFilter [pulsar]

Posted by "Technoboy- (via GitHub)" <gi...@apache.org>.
Technoboy- merged PR #21713:
URL: https://github.com/apache/pulsar/pull/21713


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org