Issues

Select view

Select search mode

 
50 of 460

Duplicate sequence numbers

Fixed

Description

We have an issue with duplicate sequence numbers - occasionally an outgoing heartbeat message has the same sequence number as another outgoing message.
Apparently the cause is that we periodically call call_hb_service from one thread (our fix8 message loop thread), but send messages on other threads.
You recommended to protect these operations with a common lock.
Currently, we are using session-scoped locks around calls to send, i.e. sending messages to different sessions in parallel is allowed and works fine.
However, call_hb_service is called for a bundle of sessions (i.e. all that are hadled by the same SessionManager), so we would have to replace the session-scoped lock with a global lock (or at least a SessionManager-scoped lock). I'm worried that this would have a significant performance impact (in production, we are connected to 30 sessions or more).
Is there a solution to this dilemma (other than replacing call_hb_service with per-sessions calls to heartbeat_service)?

Environment

Alma9

Details

Assignee

Reporter

Branch

dev

Products

Open Source

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created 30 July 2024 at 09:16
Updated 30 July 2024 at 10:50
Resolved 30 July 2024 at 10:50

Activity

Show:
Who's Looking?

Flag notifications