0

I am encountering a recurring problem in my production environment using QuickFIX Python. The issue revolves around the corruption of session files (FIX.4.4-A-B.session) in the Sessions folder. The session file is expected to contain a valid date-time format (e.g., 20240108-11:42:01), but at random times, additional and seemingly random characters are appended(20231228-22:00:02§♥♥ 0qÄ@☼sS_½•LÕ☼s£↓› GLrµ©5¹vj↕Æ#¿ÈíÜ), leading to date-time conversion errors.

enter image description here

This is a critical problem as it causes disruptions in the normal functioning of the system, and unfortunately, the error is being thrown from the underlying C++ codebase, making it challenging to catch and handle programmatically.

enter image description here

  1. Are there known reasons or common scenarios that lead to such corruption in session files?
  2. How can I better handle or prevent such corruption in the session files within my Python code?
  3. Is there a recommended way to catch and handle errors originating from the C++ core of QuickFIX within the Python environment?

Versions:

  • Fix version - FIX44
  • I am using quickfix-ssl 1.15.1.post4
  • OS: Linux - ubuntu - 18.04

Any insights or suggestions would be greatly appreciated. Thank you!

5
  • what is the system current character set settings? and timezone? Commented Jan 9, 2024 at 12:44
  • Wild guess: either the process is terminated at that time or multiple threads are concurrently modifying the file? Commented Jan 9, 2024 at 13:41
  • @Orenico - The system is configured with UTF-8 and operates in UTC timezone. Commented Jan 10, 2024 at 6:47
  • @ChristophJohn - I've thoroughly checked the system logs, and there is no indication of the process being terminated at the time of the issue. Commented Jan 10, 2024 at 6:48
  • It might be something with leapseconds...., otherwise I will carefully check the msgs sending party Commented Jan 11, 2024 at 9:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.