ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Guseinov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-10924) Invalid message type blocks Communication SPI
Date Mon, 14 Jan 2019 10:13:00 GMT
Roman Guseinov created IGNITE-10924:
---------------------------------------

             Summary: Invalid message type blocks Communication SPI
                 Key: IGNITE-10924
                 URL: https://issues.apache.org/jira/browse/IGNITE-10924
             Project: Ignite
          Issue Type: Bug
          Components: messaging
    Affects Versions: 2.7
            Reporter: Roman Guseinov
         Attachments: InvalidMessageTypeTest.java

If node A sends a message with a type which is unknown for node B then node B will fail to
process the message and node A will retry sending that message infinitely. Communication SPI
will be blocked. Also, logs from node B will contain a lot of error messages like the following:
{code:java}
[2019-01-14 18:00:59,957][ERROR][grid-nio-worker-tcp-comm-0-#25%server%][TcpCommunicationSpi]
Closing NIO session because of unhandled exception.
class org.apache.ignite.internal.util.nio.GridNioException: Invalid message type: 32767
	at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2409)
	at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2150)
	at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1791)
	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
	at java.lang.Thread.run(Thread.java:748)
Caused by: class org.apache.ignite.IgniteException: Invalid message type: 32767
	at org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:1164)
	at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$6.create(TcpCommunicationSpi.java:2322)
	at org.apache.ignite.internal.util.nio.GridDirectParser.decode(GridDirectParser.java:81)
	at org.apache.ignite.internal.util.nio.GridNioCodecFilter.onMessageReceived(GridNioCodecFilter.java:114)
	at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109)
	at org.apache.ignite.internal.util.nio.GridConnectionBytesVerifyFilter.onMessageReceived(GridConnectionBytesVerifyFilter.java:133)
	at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109)
	at org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:3546)
	at org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:175)
	at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1300)
	at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2383)
	... 4 more
{code}

Reproducer is attached [^InvalidMessageTypeTest.java].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message