Hello,
I’m currently working on modifying the moddif plugin and have encountered a significant issue during historical data backfilling.
️What I Changed
I added the following override method to the plugin to perform actions after historical data is processed:
/// <summary>
/// Performs actions after receiving and processing new historical data.
/// </summary>
public override void OnHistoricalDataProcessed(int archiveMask, Slice slice)
{
// My custom logic here
}
️The Problem
When the driver starts backfilling data, this modification seems to trigger a communication breakdown between the COMM (Communication module) and the Server.
Observed Symptoms
Server Hang: The Server stops responding to the COMM module entirely.
Database Latency: Writing data to InfluxDB becomes extremely slow, with write operations taking over 10 seconds to complete.
My Question
Has anyone experienced similar behavior when modifying OnHistoricalDataProcessed?
I suspect my code inside this method might be blocking the main thread or causing a deadlock during the high-load backfill process. Could the Slice object be causing memory pressure, or is there a specific threading model I need to follow here?
Any advice or pointers on how to debug this latency would be greatly appreciated.