question

Upvotes
Accepted
18 0 1 2

OmmConsumer reopens all RIC streams every 15 seconds

HI,

We have omm consumer, connecting to omm interactive provider.

Everything looks good, except that consumer every 15 seconds reopens every stream, regardless whether consumer received any data recently or not. "Reopen" looks like a sequence of closeMsg and requestMsg sent at the same time. Example of the log is below.

Does anyone know what is causing this behaviour?

Thank you.

In this example timeout is set to 5000 milliseconds, which triggers reopen faster:

<!-- Outgoing Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:32:900 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<requestMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x4 (RSSL_RQMF_STREAMING)" dataSize="0">
    <key  flags="0x26 (RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_NAME_TYPE|RSSL_MKF_HAS_ATTRIB)"  name="user" nameType="3" attribContainerType="RSSL_DT_ELEMENT_LIST">
        <attrib>
            <elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
                <elementEntry name="ApplicationId" dataType="RSSL_DT_ASCII_STRING" data="256"/>
                <elementEntry name="ApplicationName" dataType="RSSL_DT_ASCII_STRING" data="Reuters MD reader/server"/>
                <elementEntry name="Position" dataType="RSSL_DT_ASCII_STRING" data="127.0.0.1/desktop"/>
                <elementEntry name="SingleOpen" dataType="RSSL_DT_UINT" data="1"/>
                <elementEntry name="SupportProviderDictionaryDownload" dataType="RSSL_DT_UINT" data="0"/>
                <elementEntry name="AllowSuspectData" dataType="RSSL_DT_UINT" data="1"/>
                <elementEntry name="Role" dataType="RSSL_DT_UINT" data="0"/>
            </elementList>
        </attrib>
    </key>
    <dataBody>
    </dataBody>
</requestMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:32:900 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<refreshMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x68 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED|RSSL_RFMF_REFRESH_COMPLETE)" groupId="0" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="Login accepted"  dataSize="0">
    <key  flags="0x26 (RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_NAME_TYPE|RSSL_MKF_HAS_ATTRIB)"  name="user" nameType="1" attribContainerType="RSSL_DT_ELEMENT_LIST">
        <attrib>
            <elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
                <elementEntry name="ApplicationId" dataType="RSSL_DT_ASCII_STRING" data="256"/>
                <elementEntry name="Position" dataType="RSSL_DT_ASCII_STRING" data="127.0.0.1/desktop"/>
                <elementEntry name="SingleOpen" dataType="RSSL_DT_UINT" data="1"/>
                <elementEntry name="AllowSuspectData" dataType="RSSL_DT_UINT" data="1"/>
            </elementList>
        </attrib>
    </key>
    <dataBody>
    </dataBody>
</refreshMsg>
<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Outgoing Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:32:900 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<requestMsg domainType="RSSL_DMT_SOURCE" streamId="2" containerType="RSSL_DT_NO_DATA" flags="0x4 (RSSL_RQMF_STREAMING)" dataSize="0">
    <key  flags="0x8 (RSSL_MKF_HAS_FILTER)"  filter="63"/>
    <dataBody>
    </dataBody>
</requestMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:32:901 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<refreshMsg domainType="RSSL_DMT_SOURCE" streamId="2" containerType="RSSL_DT_MAP" flags="0x168 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED|RSSL_RFMF_REFRESH_COMPLETE|RSSL_RFMF_CLEAR_CACHE)" groupId="0" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="Refresh Complete"  dataSize="349">
    <key  flags="0x8 (RSSL_MKF_HAS_FILTER)"  filter="3"/>
    <dataBody>
        <map flags="0x0" countHint="0" keyPrimitiveType="RSSL_DT_UINT" containerType="RSSL_DT_FILTER_LIST" >
            <mapEntry flags="0x0" action="RSSL_MPEA_ADD_ENTRY" key="1" >
                <filterList containerType="RSSL_DT_ELEMENT_LIST" countHint="0" flags="0x0">
                    <filterEntry id="1" action="RSSL_FTEA_SET_ENTRY" flags="0x0" containerType="RSSL_DT_ELEMENT_LIST">
                        <elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
                            <elementEntry name="Name" dataType="RSSL_DT_ASCII_STRING" data="ARKIG_FEED"/>
                            <elementEntry name="Vendor" dataType="RSSL_DT_ASCII_STRING" data="My"/>
                            <elementEntry name="IsSource" dataType="RSSL_DT_UINT" data="0"/>
                            <elementEntry name="Capabilities" dataType="RSSL_DT_ARRAY">
                                <array itemLength="0" primitiveType="RSSL_DT_UINT">
                                    <arrayEntry data="5"/>
                                    <arrayEntry data="6"/>
                                </array>
                            </elementEntry>
                            <elementEntry name="DictionariesProvided" dataType="RSSL_DT_ARRAY">
                                <array itemLength="0" primitiveType="RSSL_DT_ASCII_STRING">
                                    <arrayEntry data="RWFFld"/>
                                    <arrayEntry data="RWFEnum"/>
                                </array>
                            </elementEntry>
                            <elementEntry name="DictionariesUsed" dataType="RSSL_DT_ARRAY">
                                <array itemLength="0" primitiveType="RSSL_DT_ASCII_STRING">
                                    <arrayEntry data="RWFFld"/>
                                    <arrayEntry data="RWFEnum"/>
                                </array>
                            </elementEntry>
                            <elementEntry name="QoS" dataType="RSSL_DT_ARRAY">
                                <array itemLength="0" primitiveType="RSSL_DT_QOS">
                                    <arrayEntry qosDynamic="0" qosRate="1" qosTimeliness="1"/>
                                </array>
                            </elementEntry>
                            <elementEntry name="SupportsQoSRange" dataType="RSSL_DT_UINT" data="0"/>
                            <elementEntry name="ItemList" dataType="RSSL_DT_ASCII_STRING" data="#.itemlist"/>
                            <elementEntry name="SupportsOutOfBandSnapshots" dataType="RSSL_DT_UINT" data="0"/>
                            <elementEntry name="AcceptingConsumerStatus" dataType="RSSL_DT_UINT" data="0"/>
                        </elementList>
                    </filterEntry>
                    <filterEntry id="2" action="RSSL_FTEA_SET_ENTRY" flags="0x0" containerType="RSSL_DT_ELEMENT_LIST">
                        <elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
                            <elementEntry name="ServiceState" dataType="RSSL_DT_UINT" data="1"/>
                            <elementEntry name="AcceptingRequests" dataType="RSSL_DT_UINT" data="1"/>
                        </elementList>
                    </filterEntry>
                </filterList>
            </mapEntry>
        </map>
    </dataBody>
</refreshMsg>
<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Outgoing Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:32:901 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<requestMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_NO_DATA" flags="0x44 (RSSL_RQMF_STREAMING|RSSL_RQMF_HAS_QOS)" qosDynamic="0" qosRate="1" qosTimeliness="1" dataSize="0">
    <key  flags="0x3 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME)"  serviceId="1" name="TXU9"/>
    <dataBody>
    </dataBody>
</requestMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:32:901 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<refreshMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x28 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED)" groupId="0" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="Refresh Completed"  dataSize="31">
    <key  flags="0x3 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME)"  serviceId="1" name="TXU9"/>
    <dataBody>
        <fieldList flags="0x8 (RSSL_FLF_HAS_STANDARD_DATA)">
            <fieldEntry fieldId="22" data="0B01 62"/>
            <fieldEntry fieldId="25" data="0B01 5C"/>
            <fieldEntry fieldId="30" data="0E01 64"/>
            <fieldEntry fieldId="31" data="0E01 5E"/>
            <fieldEntry fieldId="118" data="A0"/>
        </fieldList>
    </dataBody>
</refreshMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:33:030 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<updateMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x0" updateType="0 (RDM_UPD_EVENT_TYPE_UNSPECIFIED)" dataSize="15">
    <dataBody>
        <fieldList flags="0x8 (RSSL_FLF_HAS_STANDARD_DATA)">
            <fieldEntry fieldId="25" data="0B01 5C"/>
            <fieldEntry fieldId="31" data="0E01 5E"/>
        </fieldList>
    </dataBody>
</updateMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:33:053 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<updateMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x0" updateType="0 (RDM_UPD_EVENT_TYPE_UNSPECIFIED)" dataSize="19">
    <dataBody>
        <fieldList flags="0x8 (RSSL_FLF_HAS_STANDARD_DATA)">
            <fieldEntry fieldId="118" data="A0"/>
            <fieldEntry fieldId="6" data="0B01 6A"/>
            <fieldEntry fieldId="178" data="0E01 6B"/>
        </fieldList>
    </dataBody>
</updateMsg>
----- here we have more update messages -----------------------
<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:37:112 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<updateMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x0" updateType="0 (RDM_UPD_EVENT_TYPE_UNSPECIFIED)" dataSize="15">
    <dataBody>
        <fieldList flags="0x8 (RSSL_FLF_HAS_STANDARD_DATA)">
            <fieldEntry fieldId="22" data="0B01 62"/>
            <fieldEntry fieldId="30" data="0E01 64"/>
        </fieldList>
    </dataBody>
</updateMsg>
------------ Why do we have closeMsg + requestMsg here when update was received less than a second ago ??? -------
<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Outgoing Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:37:905 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<closeMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_NO_DATA" flags="0x0" dataSize="0">
    <dataBody>
    </dataBody>
</closeMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Outgoing Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:37:905 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<requestMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="5" containerType="RSSL_DT_NO_DATA" flags="0x44 (RSSL_RQMF_STREAMING|RSSL_RQMF_HAS_QOS)" qosDynamic="0" qosRate="1" qosTimeliness="1" dataSize="0">
    <key  flags="0x3 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME)"  serviceId="1" name="TXU9"/>
    <dataBody>
    </dataBody>
</requestMsg>

<!-- End Message (Channel IPC descriptor = 10) -->
<!-- Incoming Message (Channel IPC descriptor = 10) -->
<!-- Time: 1:46:37:905 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<refreshMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="5" containerType="RSSL_DT_FIELD_LIST" flags="0x28 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED)" groupId="0" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="Refresh Completed"  dataSize="31">
    <key  flags="0x3 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME)"  serviceId="1" name="TXU9"/>
    <dataBody>
        <fieldList flags="0x8 (RSSL_FLF_HAS_STANDARD_DATA)">
            <fieldEntry fieldId="22" data="0B01 62"/>
            <fieldEntry fieldId="25" data="0B01 5C"/>
            <fieldEntry fieldId="30" data="0E01 64"/>
            <fieldEntry fieldId="31" data="0E01 5E"/>
            <fieldEntry fieldId="118" data="A0"/>
        </fieldList>
    </dataBody>
</refreshMsg>
elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apiOMM
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
38.1k 71 35 53

@sergey_at_ark

The refresh message of the TXU9 item doesn't have the refresh complete flag.

<refreshMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x28 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED)" groupId="0" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="Refresh Completed"  dataSize="31"> 

The refresh message must have the refresh complete flag like this.

<refreshMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x1E8 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED|RSSL_RFMF_REFRESH_COMPLETE|RSSL_RFMF_HAS_QOS|RSSL_RFMF_CLEAR_CACHE)" groupId="1" qosDynamic="0" qosRate="1" qosTimeliness="1" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="Item Refresh Completed"  dataSize="64">

The description of the refresh complete flag is:


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Great. Thank you. I must have removed it during refactoring.

Upvotes
18 0 1 2

EmaConfig.xml to go with the question:

<?xml version="1.0" encoding="UTF-8"?>
<EmaConfig>
<ConsumerGroup>
 <ConsumerList>
  <Consumer>
    <Name value="wtr"/>
    <ChannelSet value="Channel_A_14005,Channel_B_14005"/>
    <Logger value="Logger_C"/>
    <Dictionary value="Dictionary_1"/>
    <ReconnectAttemptLimit value="9"/>
    <ItemCountHint value="747"/>
    <RequestTimeout value="5000"/>
    <XmlTraceToStdout value="0"/>
    <XmlTraceToFile value="1"/>
    <XmlTraceFileName value="EmaTrace_C_wtr"/>
    <XmlTraceMaxFileSize value="10000000"/>
  </Consumer>
 </ConsumerList>
</ConsumerGroup>

<ChannelGroup>
 <ChannelList>
  <Channel>
   <Name value="Channel_A_14005"/>
   <ChannelType value="ChannelType::RSSL_SOCKET"/>
   <Host value="127.0.0.1"/>
   <Port value="14005"/>
  </Channel>

  <Channel>
   <Name value="Channel_B_14005"/>
   <ChannelType value="ChannelType::RSSL_SOCKET"/>
   <Host value="127.0.0.1"/>
   <Port value="14005"/>
  </Channel>
 </ChannelList>
</ChannelGroup>

<LoggerGroup>
 <LoggerList>
  <Logger>
   <Name value="Logger_C"/>
   <LoggerType value="LoggerType::File"/>
   <FileName value="emaLog_C"/>
   <LoggerSeverity value="LoggerSeverity::Verbose"/>
  </Logger>
 </LoggerList>
</LoggerGroup>

<DictionaryGroup>
 <DictionaryList>
  <Dictionary>
   <Name value="Dictionary_1"/>
   <DictionaryType value="DictionaryType::FileDictionary"/>
   <RdmFieldDictionaryFileName value="external/etc/RDMFieldDictionary"/>
   <EnumTypeDefFileName value="external/etc/enumtype.def"/>
  </Dictionary>
 </DictionaryList>
</DictionaryGroup>

</EmaConfig>
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea