Skip to content

Environment.queryStreamStats not doing lazy initialization #368

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

Closed
mdleonid opened this issue Jun 28, 2023 · 0 comments
Closed

Environment.queryStreamStats not doing lazy initialization #368

mdleonid opened this issue Jun 28, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@mdleonid
Copy link

Describe the bug

When Streams Environment is used with lazy initialization, calling queryStreamStats() fails with

com.rabbitmq.stream.impl.StreamEnvironment$LocatorNotAvailableException: Locator not available
	at com.rabbitmq.stream.impl.StreamEnvironment.locatorOperation(StreamEnvironment.java:738)
	at com.rabbitmq.stream.impl.StreamEnvironment.locatorOperation(StreamEnvironment.java:692)
	at com.rabbitmq.stream.impl.StreamEnvironment.queryStreamStats(StreamEnvironment.java:484)

stream-client version is 0.10.0

Reproduction steps

  1. Create Environment with EnvironmentBuilder.lazyInitialization(true)
  2. Call streamsEnvironment.queryStreamStats("abc") as the first call
  3. Catch the LocatorNotAvailableException

Expected behavior

A StreamStats is returned or a StreamDoesNotExistException is thrown.

Additional context

No response

@mdleonid mdleonid added the bug Something isn't working label Jun 28, 2023
@acogoluegnes acogoluegnes added this to the 0.11.0 milestone Jun 29, 2023
github-actions bot pushed a commit that referenced this issue Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants