Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by saurav1 · Jun 22, 2020 at 02:08 AM · elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apicompression

Failed to set compression threshold on channel Channel_3

loggerMsg

TimeStamp: 21:57:01.966

ClientName: ChannelCallbackClient

Severity: Error

Text: Failed to set compression threshold on channel Channel_3

Consumer Name Consumer_3_1

RsslReactor 0x0xcd6210

RsslChannel 0x0xcd6210

Error Id -1

Internal sysError 0

Error Location /local/jenkins/workspace/ESDKCore_RCDEV/OS/OL7-64/rcdev/source/esdk/Cpp-C/Eta/Include/Reactor/rtr/rsslReactorChannel.h:156

Error text </local/jenkins/workspace/ESDKCore_RCDEV/OS/OL7-64/rcdev/source/esdk/Cpp-C/Eta/Impl/Transport/rsslSocketTransportImpl.c,10375> Error: 1004 rsslSocketIoctl() failed, could not set the compression threshold mark to <30>, must be equal or greater than 300 bytes

loggerMsgEnd


The code is built using Elektron-sdk-1.4.0.L1.linux. It was working fine until this error started showing whenever i try to run the code now. Is there any configuration setting that i need to change in EmaConfig.xml or in the source files to correct this behaviour.
Also i did not mody any files between working and non-working state of the code.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Jirapongse · Jun 22, 2020 at 07:38 AM

@saurav1

I got the same error when using the channel_3.

loggerMsg
    TimeStamp: 14:32:05.053
    ClientName: ChannelCallbackClient
    Severity: Error
    Text:    Failed to set compression threshold on channel Channel_3
        Consumer Name Consumer_3_1
        RsslReactor 0x0000026F2B3620E0
        RsslChannel 0x0000026F2B3620E0
        Error Id -1
        Internal sysError 0
        Error Location D:\Jenkins\workspace\ESDKCore_RCDEV\OS\VS150-64\rcdev\source\esdk\Cpp-C\Eta\Include\Reactor\rtr/rsslReactorChannel.h:139
        Error text <D:\Jenkins\workspace\ESDKCore_RCDEV\OS\VS150-64\rcdev\source\esdk\Cpp-C\Eta\Impl\Transport\rsslSocketTransportImpl.c,10410> Error: 1004 rsslSocketIoctl() failed, could not set the compression threshold mark to <30>, must be equal or greater than 300 bytes
loggerMsgEnd

However, if I added <CompressionThreshold value="300"/> in the Channel_3, the problem has been solved.

        <Channel>
            <Name value="Channel_3"/>
            <ChannelType value="ChannelType::RSSL_ENCRYPTED"/>
            <CompressionType value="CompressionType::None"/>
            <GuaranteedOutputBuffers value="5000"/>
            <CompressionThreshold value="300"/>
            <!-- EMA discovers a host and a port from EDP-RT service discovery for the specified location 
                 when both of them are not set and the session management is enable. -->
            <Location value="us-east"/>
            <EnableSessionManagement value="1"/>
            <EncryptedProtocolType value="EncryptedProtocolType::RSSL_SOCKET"/>
            <!-- ObjectName is optional: defaulted to ""                                                -->
            <ObjectName value=""/>
        </Channel>

I am using ESDK1.5 on Windows.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
saurav1 · Jun 22, 2020 at 07:53 AM 0
Share

Thank you for the help. i modified CompressionType field to LZ4 along with setting threshold, that's why it didn't work earlier.

avatar image
REFINITIV
Answer by Jirapongse · Jun 22, 2020 at 04:58 AM

@saurav1

From the error, you may use the LZ4 compression type. The compression threshold of the LZ4 compression type must be equal to or greater than 300.

You can change the value of the compression threshold with the following configuration.

<CompressionThreshold value="300"/>

Please add this configuration to the Channel_3 channel in the EmaConfig.xml file. If it doesn't solve the problem, please share your configuration file (EmaConfig.xml).



1592801800481.png (59.0 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by saurav1 · Jun 22, 2020 at 06:39 AM

EmaConfig.txtThis is the configuration i am using. The compression type is set to none in the config.

<CompressionType value="CompressionType::None"/>

If i use LZ4 compression with appropriate threshold as mentioned above i get different errors

loggerMsg
    TimeStamp: 02:32:28.009
    ClientName: EmaConfig
    Severity: Error
    Text:    convertEnum has an implementation for enumType [CompressionType] but no appropriate conversion for value [RSSL_COMP_LZ4]
loggerMsgEnd

loggerMsg
    TimeStamp: 02:32:29.626
    ClientName: ChannelCallbackClient
    Severity: Success
    Text:    Received ChannelUp event on channel Channel_3
        Instance Name Consumer_3_1
        Connected component version: ads3.3.3.L1.linux.tis.rrg 64-bit
loggerMsgEnd

loggerMsg
    TimeStamp: 02:32:32.851
    ClientName: SingleItem
    Severity: Error
    Text:    Internal error: rsslReactorSubmitMsg() failed in SingleItem::submit( RsslRequestMsg* )
        RsslChannel 0x(nil)
        Error Id -29
        Internal sysError 0
        Error Location /local/jenkins/workspace/ESDKCore_RCDEV/OS/OL7-64/rcdev/source/esdk/Cpp-C/Eta/Impl/Reactor/Watchlist/wlItem.c:697
        Error Text Domain type does not match existing request.
loggerMsgEnd

loggerMsg
    TimeStamp: 02:32:32.852
    ClientName: Consumer_3_1
    Severity: Error
    Text:    Failed to open or modify item request. Reason: RSSL_RET_INVALID_DATA. Error text: Domain type does not match existing request.
loggerMsgEnd

onInvalidUsage callback function
Error text: Failed to open or modify item request. Reason: RSSL_RET_INVALID_DATA. Error text: Domain type does not match existing request.
RecordHandler::process_record



emaconfig.txt (18.5 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

EMA CPP - Exception adding ric into OmmArray

(JAVA) Does using interestAfterRefresh(false) remove the need for deregistering items with Elektron?

Login Domain - Components and Elements in Login responses

EMA Java - Is it possible to open a stream in a paused state?

Matching historic raw tick with live tick from Elektron API EMA, service hEDD

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges