Application crash in rfa::common::EventQueueImpl::dispatch(long) from libRFA_Common.so
Hi Team,
We are using RFA version 8.2.3 C++ to consume market data.
libRFA_Common.so [version.c VERSION 8.2.3 RELEASE (Internal Node: rfaut8.2.3.L1)]
There is one scenario we are performing, below are the steps,
- Subscribe to a symbol/security AAPL (subscription is still open)
- Resubscribe to same security, which will
- Delete the previously created OMM client for AAPL
- create new OMM client again
In this scenario we observed a application crash rfa::common::EventQueueImpl::dispatch(long) from libRFA_Common.so
call stack information in the core file :
0x00002ab2002b10dc in rfa::common::EventQueueImpl::dispatch(long) () from /home/flexsys/flex/bin/libRFA_Common.so
0x000000000072bf6c in RFAFlex::DataThread::Loop (this=0x121cc60 <RFAFlex::SingletonRFAFlex::DataThread::GetInstance()::myInstance>) at marketdata/Reuters_RFA/RFADataThread.cpp:637
0x00000000007990ea in RFAFlex::RFAThread::Run (pVoid=0x121cc60 <RFAFlex::SingletonRFAFlex::DataThread::GetInstance()::myInstance>) at marketdata/Reuters_RFA/RFAThread.cpp:32
I saw some crash related questions, and the resolution is to upgrade the libs. I want to ask is the issue still persist in the libs which are using? Or the root cause is something else
Answers
-
Thank you for reaching out to us.
You need to check the 6.4.1.5 Closing Event Stream section in the RFA developer guide.
The application closes the stream via unregisterClient() call to RFA. In this case, RFA might dispatch additional events that were in flight due to race condition. To determine the point at which RFA closes an event stream, an application should use completion events. In this case, the application may add an additional case statement in the processEvent() method. The completion event enumeration is ComplEventEnum, available in the Common Package.
In short, if the application calls the unreisterClient to close stream, it must wait for a completion event or a closed stream event before destroying an associated OMM client.
createOMMConsumer() also accepts an optional second parameter which specifies whether or not completion events should be sent, which by default is false. To enable the completion events, the second parameter must be set to true.OMMConsumer * createOMMConsumer (const rfa::common::RFA_String &name, bool wCompEvents=false)=0
If this doesn't solve this issue, you need to upgrade the application to latest version (RFA 8.2.5.L3) or contact the API support team via Contact Premium Support to investigate this issue.
1 -
Thank you for your quick response. One follow up question,
Let's say while doing subscription:
pOMMConsumer->registerClient( pEventQueue, &ommItemIntSpec, *this, NULL );
we encountered a exception. Then in that case do we receive event ComplEventEnum with isEventStreamClosed = true or any other event?
If yes, We need to delete associated omm client after that.
But if no, then is it fine to delete the omm client immediately?
0 -
The application must delete an omm client after the associated stream was closed (ComplEventEnum or isEventStreamClosed = true).
It is not fine to delete the omm client immediately.
Please read the 6.4.1.5 Closing Event Stream section in the RFA developer guide.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 710 Datastream
- 1.5K DSS
- 637 Eikon COM
- 5.3K Eikon Data APIs
- 18 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 10 Trading API
- 3K Elektron
- 1.5K EMA
- 260 ETA
- 571 WebSocket API
- 42 FX Venues
- 16 FX Market Data
- 2 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 26 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 25 RDMS
- 2.3K Refinitiv Data Platform
- 17 CFS Bulk File/TM3
- 928 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 46 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 126 Open DACS
- 1.1K RFA
- 108 UPA
- 197 TREP Infrastructure
- 232 TRKD
- 924 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 106 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛