Ilya Suntsov created IGNITE-5735:
------------------------------------

             Summary: NPE during populated data (CacheQueryDdlExample)
                 Key: IGNITE-5735
                 URL: https://issues.apache.org/jira/browse/IGNITE-5735
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 2.1
            Reporter: Ilya Suntsov
             Fix For: 2.1


Steps for reproduce:
1. Start 2 nodes with *examples/config/example-ignite.xml*
2. Start *CacheQueryDdlExample*
Result:
Om example node:
{noformat}
[10:19:17]    __________  ________________ 
[10:19:17]   /  _/ ___/ |/ /  _/_  __/ __/ 
[10:19:17]  _/ // (7 7    // /  / / / _/   
[10:19:17] /___/\___/_/|_/___/ /_/ /___/  
[10:19:17] 
[10:19:17] ver. 2.1.2#20170711-sha1:2a2c8030
[10:19:17] 2017 Copyright(C) Apache Software Foundation
[10:19:17] 
[10:19:17] Ignite documentation: http://ignite.apache.org
[10:19:17] 
[10:19:17] Quiet mode.
[10:19:17]   ^-- Logging to file 
'/Users/gridgain/Downloads/gridgain-enterprise-fabric-8.1.2/work/log/ignite-9ef688f8.log'
[10:19:17]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or 
"-v" to ignite.{sh|bat}
[10:19:17] 
[10:19:17] OS: Mac OS X 10.10.5 x86_64
[10:19:17] VM information: Java(TM) SE Runtime Environment 1.8.0_45-b14 Oracle 
Corporation Java HotSpot(TM) 64-Bit Server VM 25.45-b02
[10:19:17] Initial heap size is 256MB (should be no less than 512MB, use 
-Xms512m -Xmx512m).
[10:19:17] Configured plugins:
[10:19:17]   ^-- GridGain 8.1.2#20170711-sha1:ff30520a
[10:19:17]   ^-- 2017 Copyright(C) GridGain Systems
[10:19:17] 
[10:19:17] Message queue limit is set to 0 which may lead to potential OOMEs 
when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to 
message queues growth on sender and receiver sides.
[10:19:17] Security status [authentication=off, tls/ssl=off]
[10:19:18] Rolling updates are disabled. GridGain version update will require 
full cluster restart. Consider changing 
'GridGainConfiguration.rollingUpdatesEnabled' configuration property.
[2017-07-12 10:19:20,162][ERROR][main][GridEntLicenseProcessor] License 
violation detected:
  ^-- Maximum number of nodes (3/2) is exceeded.
[2017-07-12 10:19:20,162][ERROR][main][GridEntLicenseProcessor] Contact 
sa...@gridgain.com for further assistance. Make sure to include your license 
ID: 9D50E008-472D-430F-8B2D-CFB8A3894C0D
[2017-07-12 10:19:20,163][ERROR][main][GridEntLicenseProcessor] License 
grace/burst period - left 1 hour.
[10:19:20] Performance suggestions for grid  (fix if possible)
[10:19:20] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[10:19:20]   ^-- Disable grid events (remove 'includeEventTypes' from 
configuration)
[10:19:20]   ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM options)
[10:19:20]   ^-- Specify JVM heap max size (add '-Xmx<size>[g|G|m|M|k|K]' to 
JVM options)
[10:19:20]   ^-- Set max direct memory size if getting 'OOME: Direct buffer 
memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
[10:19:20]   ^-- Disable processing of calls to System.gc() (add 
'-XX:+DisableExplicitGC' to JVM options)
[10:19:20] Refer to this page for more performance suggestions: 
https://apacheignite.readme.io/docs/jvm-and-system-tuning
[10:19:20] 
[10:19:20] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[10:19:20] 
[10:19:20] Ignite node started OK (id=9ef688f8)
[10:19:20] Topology snapshot [ver=3, servers=3, clients=0, CPUs=8, heap=5.6GB]

>>> Cache query DDL example started.

>>> Created database objects.

>>> Populated data.
{noformat}

On remote nodes;
{noformat}
SEVERE: Failed to read message [msg=GridIoMessage [plc=0, topic=null, 
topicOrd=-1, ordered=false, timeout=0, skipOnTimeout=false, msg=null], 
buf=java.nio.DirectByteBuffer[pos=4 lim=10001 cap=32768], 
reader=DirectMessageReader [state=DirectMessageState [pos=0, stack=[StateItem 
[stream=DirectByteBufferStreamImplV2 [baseOff=140343292566528, arrOff=-1, 
tmpArrOff=0, tmpArrBytes=0, msgTypeDone=false, msg=null, mapIt=null, it=null, 
arrPos=-1, keyDone=false, readSize=-1, readItems=0, prim=0, primShift=0, 
uuidState=0, uuidMost=0, uuidLeast=0, uuidLocId=0, lastFinished=true], 
state=0], null, null, null, null, null, null, null, null, null]], 
lastRead=false], ses=GridSelectorNioSessionImpl [worker=DirectNioClientWorker 
[super=AbstractNioClientWorker [idx=2, bytesRcvd=117764, bytesSent=5240, 
bytesRcvd0=20086, bytesSent0=56, select=true, super=GridWorker 
[name=grid-nio-worker-tcp-comm-2, igniteInstanceName=null, finished=false, 
hashCode=158461243, interrupted=false, 
runner=grid-nio-worker-tcp-comm-2-#19%null%]]], 
writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768], 
readBuf=java.nio.DirectByteBuffer[pos=4 lim=10001 cap=32768], 
inRecovery=GridNioRecoveryDescriptor [acked=10, resendCnt=0, rcvCnt=10, 
sentCnt=10, reserved=true, lastAck=0, nodeLeft=false, node=TcpDiscoveryNode 
[id=9ef688f8-ba58-4b40-8d7c-01c2b8bb7f57, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 
172.25.4.60], sockAddrs=[mpb.gridgain.local/172.25.4.60:47502, 
/0:0:0:0:0:0:0:1:47502, /127.0.0.1:47502], discPort=47502, order=3, intOrder=3, 
lastExchangeTime=1499843959324, loc=false, ver=2.1.2#20170711-sha1:2a2c8030, 
isClient=false], connected=true, connectCnt=2, queueLimit=4096, reserveCnt=53, 
pairedConnections=false], outRecovery=GridNioRecoveryDescriptor [acked=10, 
resendCnt=0, rcvCnt=10, sentCnt=10, reserved=true, lastAck=0, nodeLeft=false, 
node=TcpDiscoveryNode [id=9ef688f8-ba58-4b40-8d7c-01c2b8bb7f57, 
addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.25.4.60], 
sockAddrs=[mpb.gridgain.local/172.25.4.60:47502, /0:0:0:0:0:0:0:1:47502, 
/127.0.0.1:47502], discPort=47502, order=3, intOrder=3, 
lastExchangeTime=1499843959324, loc=false, ver=2.1.2#20170711-sha1:2a2c8030, 
isClient=false], connected=true, connectCnt=2, queueLimit=4096, reserveCnt=53, 
pairedConnections=false], super=GridNioSessionImpl 
[locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:54239, 
createTime=1499844017164, closeTime=0, bytesSent=28, bytesRcvd=10043, 
bytesSent0=28, bytesRcvd0=10043, sndSchedTime=1499844017164, 
lastSndTime=1499844017164, lastRcvTime=1499844017164, readsPaused=false, 
filterChain=FilterChain[filters=[GridNioCodecFilter 
[parser=o.a.i.i.util.nio.GridDirectParser@11c4be7e, directMode=true], 
GridConnectionBytesVerifyFilter], accepted=true]]]
java.lang.NullPointerException
        at 
org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:879)
        at 
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$9.create(TcpCommunicationSpi.java:2140)
        at 
org.apache.ignite.internal.direct.stream.v2.DirectByteBufferStreamImplV2.readMessage(DirectByteBufferStreamImplV2.java:1154)
        at 
org.apache.ignite.internal.direct.DirectMessageReader.readMessage(DirectMessageReader.java:311)
        at 
org.apache.ignite.internal.managers.communication.GridIoMessage.readFrom(GridIoMessage.java:261)
        at 
org.apache.ignite.internal.util.nio.GridDirectParser.decode(GridDirectParser.java:90)
        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:3222)
        at 
org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:175)
        at 
org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1213)
        at 
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2180)
        at 
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:1968)
        at 
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1669)
        at 
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:745)

Jul 12, 2017 10:20:18 AM org.apache.ignite.logger.java.JavaLogger warning
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to