Skip to content

Dashboard lists only the serving app's queues since 4.0.0-RC4 when several apps share one Redis #309

Backlog

Description

@xelagr

What's not working?

Since 4.0.0-RC4, the web dashboard only lists the queues that the application serving the dashboard listens to. Queues consumed by other applications connected to the same Redis no longer appear on the queues page, in the explore view or in the charts.

Up to 4.0.0-RC3, every application added its queue names to a shared Redis set on startup (rqueueStringDao.appendToSet(rqueueConfig.getQueuesKey(), ...)), and RqueueSystemManagerServiceImpl.getQueues() read that set. A dashboard hosted by one application therefore showed the queues of all of them.

#292 (NATS backend) replaced this with the in-memory registry:

public List<String> getQueues() {
  // EndpointRegistry is the in-memory source of truth for active queue names; identical
  // semantics to the previous Redis "set of queue names" key on a single instance, ...
  return new ArrayList<>(EndpointRegistry.getActiveQueues());
}

The semantics are identical only when a single application uses Redis. With several applications, the dashboard host is the only one whose queues are visible. The change is not mentioned in the RC4 release notes, so it looks unintended.

What're application dependencies ?

  • Rqueue Version: 4.0.1 (same code in 4.0.0-RC11; 4.0.0-RC3 lists all queues)
  • Spring Boot Version: 4.1.2
  • Spring Messaging Version: 7.0.10
  • Spring Data Redis Version: 4.1.2

How to Reproduce (optional)?

  1. Start application A with rqueue.web.enable=true and a listener on queue-a.
  2. Start application B against the same Redis with rqueue.web.enable=false and a listener on queue-b.
  3. Open A's dashboard: only queue-a is listed. On 4.0.0-RC3, both queues are listed.

Additional Details (optional)

Possible fixes:

  • On the Redis backend, restore the shared queue-name set (write it in createOrUpdateConfigs, read it in getQueues), and keep EndpointRegistry for NATS.
  • Or list the queues from the persisted QueueConfig entries, which rqueueSystemConfigDao still writes for every application, merged with EndpointRegistry for the local ones.

Running the dashboard in a dedicated application is a common setup (one app hosts the UI, the others only process messages), and this change breaks it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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