Closed samdai closed 4 years ago
Is there any resolution to the problem?
Increase the maxBufferSize in the BayeuxParameters (make sure that the longPollingOptions includes that value keyed by 'maxMessageSize').
@lmcalpin does this imply the messages / some messages might be lost?
@lmcalpin Do you know what the buffer is buffering? I'm trying to understand the nature of this error, not just to work around it by increasing the buffer size.
@pmeister we figured out on our side that messages are lost by the buffer if you do not provide enough space. It is buffering the streamingAPI messages and this is producing lost notifications if you resubscribe with replayId = -2 and you have a lot of messages in the retention window
@lmcalpin ,
Can you please help how to set maxMessageSize Map against longPollingTrabsportOptions in properties file?
Thanks
When we subscribe platform events from SFDC using EMP connector, sometimes we receive the below error message, does anyone know what is the root cause of error "Buffering capacity 1048576 exceeded"?
2019-08-16 11:53:07,078 WARN [c.i.s.e.lib.EmpConnector] [ HttpClient@153c6041-935910] EMP connector received error message: {failure={exception=java.lang.IllegalArgumentException: Buffering capacity 1048576 exceeded, message={clientId=jr1mvw84q01iegfw6mtlig4fqfm, channel=/meta/connect, id=16376, connectionType=long-polling}, connectionType=long-polling}, channel=/meta/connect, id=16376, successful=false}, will stop and restore the connection.