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 2019/12/26 12:42:14 UTC

[GitHub] [pulsar] nicolo-paganin opened a new issue #5944: PulsarIO Sink "topic-pattern" regex is not filtering inputs topics correctly

nicolo-paganin opened a new issue #5944: PulsarIO Sink "topic-pattern" regex is not filtering inputs topics correctly
URL: https://github.com/apache/pulsar/issues/5944
 
 
   **Describe the bug**
   PulsarIO Sink "topics-pattern" regex is not working as expected
   
   **To Reproduce**
   We have two topics:
   
   1. ://public/default/topic1
   2. ://public/default/topic2
   
   We are using the builtin **influxdb connector,** so check to have it installed before try to reproduce the behaviour. 
   
   Steps to reproduce the behavior:
   1. We would like to create a new sink using a regex topic-pattern that has as inputs both topic1 and topic2 and all the topics that start with the character "t" using the pattern "t.*". So, create the Sink using the following command
   `pulsar-admin sinks create --tenant public --namespace default --name test-sink --sink-type influxdb  --sink-config-file influxdb.yaml  --topics-pattern "t.*`
   
   This is the influxdb.yaml configuration
   `configs:
     influxdbUrl: "http://localhost:8086"
     database: "test_db"
     username: "admin"
     password: "Oncode01"
     consistencyLevel: "ONE"
     logLevel: "NONE"
     retentionPolicy: "autogen"
     gzipEnable: true
     batchTimeMs: 1000
     batchSize: 200`
   
   2. I expcted to have as inputs both topic1 and topic2 but there are no topics as input
   3. If I use as topic pattern only ".*" using this command
   `pulsar-admin sinks create --tenant public --namespace default --name test-sink --sink-type influxdb  --sink-config-file influxdb.yaml  --topics-pattern "t.*` and the same influxdb.yaml configuration I have correctly topic1 and topic2 as inputs
   
   **Expected behavior**
   The expected behaviour is to have both topic1 and topic2 ans the sink inputs.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] nicolo-paganin closed issue #5944: PulsarIO Sink "topics-pattern" regex is not filtering inputs topics correctly

Posted by GitBox <gi...@apache.org>.
nicolo-paganin closed issue #5944: PulsarIO Sink "topics-pattern" regex is not filtering inputs topics correctly
URL: https://github.com/apache/pulsar/issues/5944
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] nicolo-paganin commented on issue #5944: PulsarIO Sink "topics-pattern" regex is not filtering inputs topics correctly

Posted by GitBox <gi...@apache.org>.
nicolo-paganin commented on issue #5944: PulsarIO Sink "topics-pattern" regex is not filtering inputs topics correctly
URL: https://github.com/apache/pulsar/issues/5944#issuecomment-569056182
 
 
   I noted that specifying the whole topic url, so `--topics-pattern "public/default/t.*"` it is working correctly

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services