You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate if sctp loggingmode should be parent by default #705
The loggingmode is set by default here: TorQ/config/settings/segmentedchainedtickerplant.q
Note that if we decided to change this, the change would need to be made in the equivalent file in TorQ FSP located here: TorQ-Finance-Starter-Pack/appconfig/settings/segmentedchainedtickerplant.q
When loggingmode is set to none (which is it by default currently), replaying the tp log to downstream subscribers who call .sub.subscribe doesn't work. I don't think this is intuitive and loggingmode must be changed to parent for this replay mechanism to work.
We just need to check there are no other untoward effects in making this change. For example, if stp/sctp are on different hosts, does making this change introduce errors, cause loss of some other functionality, etc.
Reproducing the issue with none
With none, the SCTP doesn't create any logs and doesn't forward replay requests to the STP. A new subscriber to the SCTP with replay on only got live data. Calling .stplg.replaylog on the SCTP returned nothing to replay, while the STP returned its log files.
Parent on the same host
In parent mode, the SCTP forwards replay requests to the STP, which returns its log files and message counts. The subscriber then replays those files itself. A fresh subscriber replayed the STP's logs and got the day's data, and the RDB and WDB logs showed replays finishing with no errors. A stack left running in parent mode for a couple of days showed no end of day bugs or errors.
Parent with a subscriber on a separate host
Because the subscriber opens the STP's log files itself, it needs to be able to read them at the same path the STP uses. I tested this with a q session on another machine, connected to the SCTP through an SSH tunnel. The SCTP returned the STP's log paths, but they don't exist on that machine. Replay failed with "No such file or directory". It logs "could not replay the log file" and the subscriber only gets live data. So the subscriber just ends up missing data.
Activity
RTSibDI commentedon Dec 3, 2026
Reproducing the issue with none
With none, the SCTP doesn't create any logs and doesn't forward replay requests to the STP. A new subscriber to the SCTP with replay on only got live data. Calling .stplg.replaylog on the SCTP returned nothing to replay, while the STP returned its log files.
Parent on the same host
In parent mode, the SCTP forwards replay requests to the STP, which returns its log files and message counts. The subscriber then replays those files itself. A fresh subscriber replayed the STP's logs and got the day's data, and the RDB and WDB logs showed replays finishing with no errors. A stack left running in parent mode for a couple of days showed no end of day bugs or errors.
Parent with a subscriber on a separate host
Because the subscriber opens the STP's log files itself, it needs to be able to read them at the same path the STP uses. I tested this with a q session on another machine, connected to the SCTP through an SSH tunnel. The SCTP returned the STP's log paths, but they don't exist on that machine. Replay failed with "No such file or directory". It logs "could not replay the log file" and the subscriber only gets live data. So the subscriber just ends up missing data.