Skip to content

Bug: Journal service cannot handle certain SuperMQ messages #2862

@unwynd

Description

@unwynd

What were you trying to achieve?

To process and store journal entries for messaging.client_publish operations using the journal service.

What are the expected results?

All messages, including those received via SuperMQ (NATS), should be correctly handled and journaled.
No warnings or errors should occur if the message is valid.

What are the received results?

Some journal entries succeed.
Others fail with a warning: Failed to handle SuperMQ message: failed to handle nats event: missing attributes

Steps To Reproduce

  1. Run the journal service in a Docker container.
  2. Publish messages.
  3. Observe logs for successful saves and any warning messages.
  4. Confirm if the failed message is lacking required attributes.

In what environment did you encounter the issue?

Environment: Docker

Additional information you deem important

Successful logs indicate normal behavior:

{"msg":"Save journal completed successfully","operation":"messaging.client_publish"}

The failing log includes: "msg":"Failed to handle SuperMQ message: failed to handle nats event: missing attributes"

Even though the journal service logs a successful Save journal completed successfully message for messaging.client_publish operations, the corresponding entries do not appear in the audit logs.

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions