Skip to content

RpcClient not thread safe #753

@karlnicholas

Description

@karlnicholas
  • RabbitMQ version:
    <groupId>com.rabbitmq</groupId>
    <artifactId>amqp-client</artifactId>
    <version>5.13.1</version>

  • A runnable code sample, terminal transcript or detailed set of
    instructions that can be used to reproduce the issue:
    Make two threads in com.rabbitmq.client.test.RpcTest.java
    e.g. RabbitMQRpcClient

  • Operating system, version, and patch level:
    Java 11: Windows 11

  • Errors reported in the JavaScript console (if any):

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - reply consumer already set, class-id=60, method-id=20)

My use case is that I am calling RpcClient from a REST service. When two clients hit the REST endpoint "at the same time" then RpcClient gives the above exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions