Problem with XmlTraceToMultipleFiles for programmatic configuration of a NiProvider
Hello,
When I do a programmatic configuration of a NiProvider, I set XmlTraceMaxFileSize to 100000 and XmlTraceToMultipleFiles to 1 with:
.addInt("XmlTraceMaxFileSize", 100000)
and
.addUInt("XmlTraceToMultipleFiles", 1)
Size is in bytes so I should get a new file if the file size exceeds 100KB.
It is working correctly, I get several files with size less than 100KB.
Now if I change .addUInt("XmlTraceToMultipleFiles", 1) to .addUInt("XmlTraceToMultipleFiles", 0), from the configuration guide, I expect that "0 (false): the Enterprise Message API stops writing the XML trace if the current file reaches the XmlTraceMaxFileSize. ".
So I should have only one file less than 100 KB.
It is not working correctly. I got one file that continues to be written even if the file size exceeds 100 KB.
What am I doing wrong?
Best Answer
-
I reported the issue here: https://github.com/Refinitiv/Real-Time-SDK/issues/162
0
Answers
-
Are you using EMA C++?
I did a quick test with consumer examples and used a programmatic config like the below codes and found the same behavior. I got one file that continues to be written even if the file size exceeds 100 KB.
void createProgramaticConfig(Map& configMap)
{
Map innerMap;
ElementList elementList;
elementList.addAscii("DefaultConsumer", "Consumer_1");
innerMap.addKeyAscii("Consumer_1", MapEntry::AddEnum,
ElementList()
.addAscii("Channel", "Channel_1")
.addAscii("Logger", "Logger_1")
.addAscii("Dictionary", "Dictionary_1")
.addUInt("ItemCountHint", 5000)
.addUInt("ServiceCountHint", 5000)
.addUInt("ObeyOpenWindow", 0)
.addUInt("PostAckTimeout", 5000)
.addUInt("RequestTimeout", 5000)
.addUInt("MaxOutstandingPosts", 5000)
.addInt("DispatchTimeoutApiThread", 100)
.addUInt("HandleException", 0)
.addUInt("MaxDispatchCountApiThread", 500)
.addUInt("MaxDispatchCountUserThread", 500)
.addInt("ReactorEventFdPort", 45000)
.addInt("PipePort", 4001)
.addInt("ReconnectAttemptLimit", 10)
.addInt("ReconnectMinDelay", 2000)
.addInt("ReconnectMaxDelay", 6000)
.addAscii("XmlTraceFileName", "MyXMLTrace")
.addInt("XmlTraceMaxFileSize", 100000)
.addUInt("XmlTraceToFile", 1)
.addUInt("XmlTraceToStdout", 0)
.addUInt("XmlTraceToMultipleFiles", 0)
.addUInt("XmlTraceWrite", 1)
.addUInt("XmlTraceRead", 1)
.addUInt("XmlTracePing", 1)
.addUInt("XmlTraceHex", 1)
.addUInt("MsgKeyInUpdates", 1).complete()).complete();
elementList.addMap("ConsumerList", innerMap);
elementList.complete();
innerMap.clear();
configMap.addKeyAscii("ConsumerGroup", MapEntry::AddEnum, elementList);
elementList.clear();
innerMap.addKeyAscii("Channel_1", MapEntry::AddEnum,
ElementList()
.addEnum("ChannelType", 0)
.addAscii("InterfaceName", "localhost")
.addEnum("CompressionType", 1)
.addUInt("GuaranteedOutputBuffers", 5000)
.addUInt("ConnectionPingTimeout", 50000)
.addAscii("Host", "<ads server>")
.addAscii("Port", "14002")
.addUInt("TcpNodelay", 0).complete()).complete();
elementList.addMap("ChannelList", innerMap);
elementList.complete();
innerMap.clear();
configMap.addKeyAscii("ChannelGroup", MapEntry::AddEnum, elementList);
elementList.clear();
innerMap.addKeyAscii("Logger_1", MapEntry::AddEnum,
ElementList()
.addEnum("LoggerType", 0)
.addAscii("FileName", "logFile")
.addEnum("LoggerSeverity", 0).complete()).complete();
elementList.addMap("LoggerList", innerMap);
elementList.complete();
innerMap.clear();
configMap.addKeyAscii("LoggerGroup", MapEntry::AddEnum, elementList);
elementList.clear();
innerMap.addKeyAscii("Dictionary_1", MapEntry::AddEnum,
ElementList()
.addEnum("DictionaryType", 1)
.addAscii("RdmFieldDictionaryFileName", "./RDMFieldDictionary")
.addAscii("EnumTypeDefFileName", "./enumtype.def").complete()).complete();
elementList.addMap("DictionaryList", innerMap);
elementList.complete();
configMap.addKeyAscii("DictionaryGroup", MapEntry::AddEnum, elementList);
elementList.clear();
configMap.complete();
}In the main function
AppClient clien
Map configMap;
createProgramaticConfig(configMap);
OmmConsumer consumer(OmmConsumerConfig().config(configMap).username("user"));It could be an issue from the Logger component inside the RTSDK.
Can you report the issue on Github?
https://github.com/Refinitiv/Real-Time-SDK/issues
0 -
I am using ESDK C++ version 1.2.2
0 -
I am using EMA C++.
0 -
I try the codes with EMA C++ from the latest RTSDK1.5.1.L1 and also found the same behaviour. Therefore I suspect that it could be an issue inside EMA implementation.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛