You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by adiagarwal29 <ad...@gmail.com> on 2020/02/26 09:49:49 UTC

org.apache.ignite.IgniteException: Invalid message type: -4692

        Hi Guys, I am new to the forum and I am getting below exception
intermittently on server node while launching client node
I have one server node and one client node and I am getting this exception
from the server node.
I am using 2.7.5 version.

2020-02-26 06:37:24.045 +0000
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi INFO
[grid-nio-worker-tcp-comm-1-#25%rates-marple-pnlswaps%] : Accepted incoming
communication connection [locAddr=/28.97.136.58:20121,
rmtAddr=/28.97.136.58:57160]
2020-02-26 06:37:24,045 ERROR GridDirectParser Failed to read message
[msg=null, buf=java.nio.DirectByteBuffer[pos=6 lim=420 cap=32768],
reader=null, ses=GridSelectorNioSessionImpl [worker=DirectNioClientWorker
[super=AbstractNioClientWorker [idx=1, bytesRcvd=1260, bytesSent=0,
bytesRcvd0=420, bytesSent0=0, select=true, super=GridWorker
[name=grid-nio-worker-tcp-comm-1, igniteInstanceName=rates-marple-pnlswaps,
finished=false, heartbeatTs=1582699044040, hashCode=1259807992,
interrupted=false,
runner=grid-nio-worker-tcp-comm-1-#25%rates-marple-pnlswaps%]]],
writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768],
readBuf=java.nio.DirectByteBuffer[pos=6 lim=420 cap=32768], inRecovery=null,
outRecovery=null, super=GridNioSessionImpl [locAddr=/28.97.136.58:20121,
rmtAddr=/28.97.136.58:57160, createTime=1582699044040, closeTime=0,
bytesSent=0, bytesRcvd=420, bytesSent0=0, bytesRcvd0=420,
sndSchedTime=1582699044040, lastSndTime=1582699044040,
lastRcvTime=1582699044040, readsPaused=false,
filterChain=FilterChain[filters=[GridNioCodecFilter
[parser=o.a.i.i.util.nio.GridDirectParser@5ddc3911, directMode=true],
GridConnectionBytesVerifyFilter], accepted=true, markedForClose=false]]]
class org.apache.ignite.IgniteException: Invalid message type: -4692
        at
org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:1140)
        at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$6.create(TcpCommunicationSpi.java:2305)
        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:123)
        at
org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109)
        at
org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:3550)
        at
org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:175)
        at
org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1310)
        at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2386)
        at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2153)
        at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1794)
        at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: org.apache.ignite.IgniteException: Invalid message type: -4692

Posted by Denis Magda <dm...@apache.org>.
Hi Aditya,

Your networking configuration is significantly customized and it's hard to
spot which configuration setting causes the issue. As Ilya mentioned, what
happens is that one of the ports (occupied by Ignite nodes) is accessed by
an alien process. Check the port numbers the alien process opens
connections with and ensure the port is excluded from Ignite's discovery
and communication configurations (or ask the alien process to use another
port number).


-
Denis


On Thu, Feb 27, 2020 at 9:30 PM Aditya Gupta <ad...@gmail.com> wrote:

> Hi,
>
> yes , Server node ignite caches are getting updated with feeds all the
> time.
> we are using server node in full in memory node with no native persistence
> enabled
>
> below is the config for server node
> <bean id="IgniteEngine"
>         class="com.rbsfm.fi.risk.aggregation.utility.IgniteStarterBean"
>         init-method="startIgnite">
>         <property name="configuration">
>                 <bean
> class="org.apache.ignite.configuration.IgniteConfiguration">
>                         <property name="segmentationPolicy" value="NOOP" />
>                         <property name="clientMode" value="false" />
>                         <property name="workDirectory"
> value="${runtime.dir}/work" />
>                         <property name="igniteInstanceName"
> value="${serverName}" />
>                         <property name="discoverySpi">
>                                 <bean
> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>                                         <property name="localPort"
> value="+20" />
>                                         <property name="localPortRange"
> value="0" />
>                                         <property name="ipFinder">
>                                                 <bean
>
>
> class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
>                                                         <property
> name="addresses" ref="ClusterNodes" />
>                                                 </bean>
>                                         </property>
>                                 </bean>
>                         </property>
>                         <property name="dataStorageConfiguration">
>                                 <bean
> class="org.apache.ignite.configuration.DataStorageConfiguration">
>                                         <property name="walMode"
> value="NONE" />
>                                         <property
> name="defaultDataRegionConfiguration">
>                                                 <bean
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                                                         <property
> name="name" value="Default_Region" />
>                                                         <property
> name="maxSize" value="#{10L * 1024 * 1024 * 1024}" />
>                                                         <property
> name="persistenceEnabled" value="false" />
>                                                         <property
> name="metricsEnabled" value="true"/>
>                                                 </bean>
>                                         </property>
>                                         <property
> name="systemRegionMaxSize" value="#{512L * 1024 * 1024}"/>
>                                 </bean>
>                         </property>
>                         <property name="communicationSpi">
>                                 <bean
> class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>                                         <property name="localPort"
> value="+21}" />
>                                         <property name="localPortRange"
> value="0" />
>                                         <property name="messageQueueLimit"
> value="10000" />
>                                         <property
> name="socketWriteTimeout" value="30000" />
>                                 </bean>
>                         </property>
>                         <property name="clientConnectorConfiguration">
>                                 <bean
> class="org.apache.ignite.configuration.ClientConnectorConfiguration">
>                                         <property name="port" value="+23"
> />
>                                         <property name="portRange"
> value="0" />
>                                 </bean>
>                         </property>
>                         <property name="connectorConfiguration">
>                                 <bean
> class="org.apache.ignite.configuration.ConnectorConfiguration">
>                                         <property name="port" value="+22"
> />
>                                         <property name="portRange"
> value="0" />
>                                 </bean>
>                         </property>
>                 </bean>
>         </property>
> </bean>
> we are using data streamers to load data in caches
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: org.apache.ignite.IgniteException: Invalid message type: -4692

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

I have trouble understanding your configuration around lines such as

                                        <property name="localPort"
value="+21}" />

Regards,
-- 
Ilya Kasnacheev


пт, 28 февр. 2020 г. в 08:30, Aditya Gupta <ad...@gmail.com>:

> Hi,
>
> yes , Server node ignite caches are getting updated with feeds all the
> time.
> we are using server node in full in memory node with no native persistence
> enabled
>
> below is the config for server node
> <bean id="IgniteEngine"
>         class="com.rbsfm.fi.risk.aggregation.utility.IgniteStarterBean"
>         init-method="startIgnite">
>         <property name="configuration">
>                 <bean
> class="org.apache.ignite.configuration.IgniteConfiguration">
>                         <property name="segmentationPolicy" value="NOOP" />
>                         <property name="clientMode" value="false" />
>                         <property name="workDirectory"
> value="${runtime.dir}/work" />
>                         <property name="igniteInstanceName"
> value="${serverName}" />
>                         <property name="discoverySpi">
>                                 <bean
> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>                                         <property name="localPort"
> value="+20" />
>                                         <property name="localPortRange"
> value="0" />
>                                         <property name="ipFinder">
>                                                 <bean
>
>
> class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
>                                                         <property
> name="addresses" ref="ClusterNodes" />
>                                                 </bean>
>                                         </property>
>                                 </bean>
>                         </property>
>                         <property name="dataStorageConfiguration">
>                                 <bean
> class="org.apache.ignite.configuration.DataStorageConfiguration">
>                                         <property name="walMode"
> value="NONE" />
>                                         <property
> name="defaultDataRegionConfiguration">
>                                                 <bean
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                                                         <property
> name="name" value="Default_Region" />
>                                                         <property
> name="maxSize" value="#{10L * 1024 * 1024 * 1024}" />
>                                                         <property
> name="persistenceEnabled" value="false" />
>                                                         <property
> name="metricsEnabled" value="true"/>
>                                                 </bean>
>                                         </property>
>                                         <property
> name="systemRegionMaxSize" value="#{512L * 1024 * 1024}"/>
>                                 </bean>
>                         </property>
>                         <property name="communicationSpi">
>                                 <bean
> class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>                                         <property name="localPort"
> value="+21}" />
>                                         <property name="localPortRange"
> value="0" />
>                                         <property name="messageQueueLimit"
> value="10000" />
>                                         <property
> name="socketWriteTimeout" value="30000" />
>                                 </bean>
>                         </property>
>                         <property name="clientConnectorConfiguration">
>                                 <bean
> class="org.apache.ignite.configuration.ClientConnectorConfiguration">
>                                         <property name="port" value="+23"
> />
>                                         <property name="portRange"
> value="0" />
>                                 </bean>
>                         </property>
>                         <property name="connectorConfiguration">
>                                 <bean
> class="org.apache.ignite.configuration.ConnectorConfiguration">
>                                         <property name="port" value="+22"
> />
>                                         <property name="portRange"
> value="0" />
>                                 </bean>
>                         </property>
>                 </bean>
>         </property>
> </bean>
> we are using data streamers to load data in caches
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: org.apache.ignite.IgniteException: Invalid message type: -4692

Posted by Aditya Gupta <ad...@gmail.com>.
Hi,

yes , Server node ignite caches are getting updated with feeds all the time.
we are using server node in full in memory node with no native persistence
enabled

below is the config for server node
<bean id="IgniteEngine"
	class="com.rbsfm.fi.risk.aggregation.utility.IgniteStarterBean"
	init-method="startIgnite">
	<property name="configuration">
		<bean class="org.apache.ignite.configuration.IgniteConfiguration">
			<property name="segmentationPolicy" value="NOOP" />
			<property name="clientMode" value="false" />
			<property name="workDirectory" value="${runtime.dir}/work" />
			<property name="igniteInstanceName" value="${serverName}" />
			<property name="discoverySpi">
				<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
					<property name="localPort" value="+20" />
					<property name="localPortRange" value="0" />
					<property name="ipFinder">
						<bean
						
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
							<property name="addresses" ref="ClusterNodes" />
						</bean>
					</property>
				</bean>
			</property>
			<property name="dataStorageConfiguration">
				<bean class="org.apache.ignite.configuration.DataStorageConfiguration">
					<property name="walMode" value="NONE" />
					<property name="defaultDataRegionConfiguration">
						<bean class="org.apache.ignite.configuration.DataRegionConfiguration">
							<property name="name" value="Default_Region" />
							<property name="maxSize" value="#{10L * 1024 * 1024 * 1024}" />
							<property name="persistenceEnabled" value="false" />
							<property name="metricsEnabled" value="true"/>
						</bean>
					</property>
					<property name="systemRegionMaxSize" value="#{512L * 1024 * 1024}"/>
				</bean>
			</property>
			<property name="communicationSpi">
				<bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
					<property name="localPort" value="+21}" />
					<property name="localPortRange" value="0" />
					<property name="messageQueueLimit" value="10000" />
					<property name="socketWriteTimeout" value="30000" />
				</bean>
			</property>
			<property name="clientConnectorConfiguration">
				<bean
class="org.apache.ignite.configuration.ClientConnectorConfiguration">
					<property name="port" value="+23" />
					<property name="portRange" value="0" />
				</bean>
			</property>
			<property name="connectorConfiguration">
				<bean class="org.apache.ignite.configuration.ConnectorConfiguration">
					<property name="port" value="+22" />
					<property name="portRange" value="0" />
				</bean>
			</property>
		</bean>
	</property>
</bean>
we are using data streamers to load data in caches



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: org.apache.ignite.IgniteException: Invalid message type: -4692

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Anything else happening in the meantime?

This one looks like something non-Ignite has connected to Communication
port.

Regards,
-- 
Ilya Kasnacheev


ср, 26 февр. 2020 г. в 12:50, adiagarwal29 <ad...@gmail.com>:

>         Hi Guys, I am new to the forum and I am getting below exception
> intermittently on server node while launching client node
> I have one server node and one client node and I am getting this exception
> from the server node.
> I am using 2.7.5 version.
>
> 2020-02-26 06:37:24.045 +0000
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi INFO
> [grid-nio-worker-tcp-comm-1-#25%rates-marple-pnlswaps%] : Accepted incoming
> communication connection [locAddr=/28.97.136.58:20121,
> rmtAddr=/28.97.136.58:57160]
> 2020-02-26 06:37:24,045 ERROR GridDirectParser Failed to read message
> [msg=null, buf=java.nio.DirectByteBuffer[pos=6 lim=420 cap=32768],
> reader=null, ses=GridSelectorNioSessionImpl [worker=DirectNioClientWorker
> [super=AbstractNioClientWorker [idx=1, bytesRcvd=1260, bytesSent=0,
> bytesRcvd0=420, bytesSent0=0, select=true, super=GridWorker
> [name=grid-nio-worker-tcp-comm-1, igniteInstanceName=rates-marple-pnlswaps,
> finished=false, heartbeatTs=1582699044040, hashCode=1259807992,
> interrupted=false,
> runner=grid-nio-worker-tcp-comm-1-#25%rates-marple-pnlswaps%]]],
> writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768],
> readBuf=java.nio.DirectByteBuffer[pos=6 lim=420 cap=32768],
> inRecovery=null,
> outRecovery=null, super=GridNioSessionImpl [locAddr=/28.97.136.58:20121,
> rmtAddr=/28.97.136.58:57160, createTime=1582699044040, closeTime=0,
> bytesSent=0, bytesRcvd=420, bytesSent0=0, bytesRcvd0=420,
> sndSchedTime=1582699044040, lastSndTime=1582699044040,
> lastRcvTime=1582699044040, readsPaused=false,
> filterChain=FilterChain[filters=[GridNioCodecFilter
> [parser=o.a.i.i.util.nio.GridDirectParser@5ddc3911, directMode=true],
> GridConnectionBytesVerifyFilter], accepted=true, markedForClose=false]]]
> class org.apache.ignite.IgniteException: Invalid message type: -4692
>         at
>
> org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:1140)
>         at
>
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$6.create(TcpCommunicationSpi.java:2305)
>         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:123)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:3550)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:175)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1310)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2386)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2153)
>         at
>
> org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1794)
>         at
> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>