Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetstream PullSubscription disconnects when reference is copied #643

Open
npapapietro opened this issue Dec 20, 2024 · 0 comments
Open

Jetstream PullSubscription disconnects when reference is copied #643

npapapietro opened this issue Dec 20, 2024 · 0 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@npapapietro
Copy link

Observed behavior

Below is a snippet of code I'm running to handle multiple subscriptions in program. I've got this to work successfully on my x86 machine but when I move to an arm64

nc = await nats.connect(...)
js = nc.jetstream()


consumers = []
for sub in subscription:
  consumer = await js.pull_subscribe(subject=subject, stream=stream, durable=durable_name)
  logger.debug(f"Consumer info {await consumer.consumer_info()}") # returns expected
  consumers.append(consumer)

# later
while True:
  for consumer in consumers:
    logger.debug(f"Consumer info {await consumer.consumer_info()}") # 404 here
    fetched = await consumer.fetch(1) # times out here
    for m in fetched:
          await m.ack()

Expected behavior

Consumers to not lose connection with nats when passed

Server and client version

cli: v0.1.4
server: nats:2.10.9-alpine

Host environment

ubuntu 22.04
nats-py==2.9.0
aarch64
k3s 1.28
python 3.10

Steps to reproduce

No response

@npapapietro npapapietro added the defect Suspected defect such as a bug or regression label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

1 participant