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/04/06 19:49:16 UTC
[GitHub] [pulsar] Tlaloc-Es opened a new issue, #15052: Consumer doesn't consume
Tlaloc-Es opened a new issue, #15052:
URL: https://github.com/apache/pulsar/issues/15052
**Describe the bug**
After call `consumer.negative_acknowledge(msg)` a lot suddenly the consumer doesn't consumer any message, I change the cursor name several times but didn't work.
The new consumers were created with
```
consumer = pulsar.Client(
PULSAR_URL,
authentication=AuthenticationOauth2(params)
).subscribe(
topic=PULSAR_TOPIC,
initial_position=_pulsar.InitialPosition.Earliest,
subscription_name=PULSAR_SUBSCRIPTION_NAME
)
```
or with
```
consumer = pulsar.Client(
PULSAR_URL,
authentication=AuthenticationOauth2(params)
).subscribe(
topic=PULSAR_TOPIC,
initial_position=pulsar.InitialPosition.Earliest,
subscription_name=PULSAR_SUBSCRIPTION_NAME
)
```
**To Reproduce**
```
while True:
msg = consumer.receive()
ex = msg.value()
data = json.loads(ex)
try:
print(data)
consumer.negative_acknowledge(msg)
except Exception as e:
consumer.negative_acknowledge(msg)
```
**Expected behavior**
Consume messages, and consume all messages from the earliest position.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
**Additional context**
Add any other context about the problem here.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Tlaloc-Es commented on issue #15052: Consumer doesn't consume
Posted by GitBox <gi...@apache.org>.
Tlaloc-Es commented on issue #15052:
URL: https://github.com/apache/pulsar/issues/15052#issuecomment-1115141447
Currently, I can get the messages, was there any not reachable error but currently, I can process all subscriptions.
--
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
[GitHub] [pulsar] mattisonchao commented on issue #15052: Consumer doesn't consume
Posted by GitBox <gi...@apache.org>.
mattisonchao commented on issue #15052:
URL: https://github.com/apache/pulsar/issues/15052#issuecomment-1091755061
Hi @Tlaloc-Es
Could you provide more information about this issue?
like broker version, client language, client version and broker logs.
--
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
[GitHub] [pulsar] Tlaloc-Es commented on issue #15052: Consumer doesn't consume
Posted by GitBox <gi...@apache.org>.
Tlaloc-Es commented on issue #15052:
URL: https://github.com/apache/pulsar/issues/15052#issuecomment-1114810041
like broker version: I don't know I am using streamnative cloud
client language: Python
client version: 2.10.0
--
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
[GitHub] [pulsar] Tlaloc-Es closed issue #15052: Consumer doesn't consume
Posted by GitBox <gi...@apache.org>.
Tlaloc-Es closed issue #15052: Consumer doesn't consume
URL: https://github.com/apache/pulsar/issues/15052
--
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