https://github.com/rabbitmq/rabbitmq-stream-java-client/blob/317b40cd1ca22ba5d8e3687be4c74a9408fc8e6d/src/main/java/com/rabbitmq/stream/impl/HashRoutingStrategy.java#L40 The routing strategy should return the empty list if there is no partition. The creation of the super stream producer could also fail if there's no partition at that time.