You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/05 20:07:21 UTC

[GitHub] [pulsar] sbreatnach opened a new pull request, #17912: [fix][py] Correct configuration of pattern discovery period

sbreatnach opened a new pull request, #17912:
URL: https://github.com/apache/pulsar/pull/17912

   ### Motivation
   
   Currently, the `pattern_auto_discovery_period` for topic pattern consumers is fixed to 60 seconds, no matter what is passed into the `subscribe` function. This is a fix for that bug.
   
   ### Modifications
   
   Pattern discovery period configuration is now passed through correctly from the `subscribe` function.
   New test to exercise pattern discovery.
   Removed misleading configuration in other test which does not use automated pattern discovery.
   Made log level configurable in test file with environment variable.
   
   If the changes are ok, I can backport these changes to earlier branches - we use v2.9 currently so I have a specific requirement for that version. I can also open a PR against the new v3 repository if required.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
     - A new integration test for the Python client library has been added
     - An existing test was slightly changed to remove misleading comments
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If the box was checked, please highlight the changes*
   
   - [ ] Dependencies (add or upgrade a dependency)
   - [ ] The public API
   - [ ] The schema
   - [ ] The default values of configurations
   - [ ] The binary protocol
   - [ ] The REST endpoints
   - [ ] The admin CLI options
   - [ ] Anything that affects deployment
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [x] `doc-not-needed` 
   Documentation now matches behaviour described for the `pattern_auto_discovery_period` option.
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   
   ### Matching PR in forked repository
   
   PR in forked repository: 
   [Successful manual run of CI job in forked repository](https://github.com/PassFort/pulsar/actions/runs/3174910892)
   


-- 
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