Naveen Chikkala created IGNITE-15857:
----------------------------------------

             Summary: java.lang.IllegalStateException: Duplicate key getting 
when I use Persistence 
                 Key: IGNITE-15857
                 URL: https://issues.apache.org/jira/browse/IGNITE-15857
             Project: Ignite
          Issue Type: Bug
          Components: persistence
    Affects Versions: 2.11
         Environment: Windows 

VM information: OpenJDK Runtime Environment 1.8.0_265-b01 Red Hat, Inc. OpenJDK 
64-Bit Server VM 25.265-b01

 
            Reporter: Naveen Chikkala
         Attachments: Sample_java_code.txt

While I am using  persistence, first time node starts without any issues and I 
can see the  tables created on storage drive. . But While I restart the node I 
am getting below error: 

 

Sample java code attached.

 

Log files 

==========================================

[21:15:33] __________ ________________ 
[21:15:33] / _/ ___/ |/ / _/_ __/ __/ 
[21:15:33] _/ // (7 7 // / / / / _/ 
[21:15:33] /___/\___/_/|_/___/ /_/ /___/ 
[21:15:33] 
[21:15:33] ver. 2.11.0#20210911-sha1:8f3f07d3
[21:15:33] 2021 Copyright(C) Apache Software Foundation
[21:15:33] 
[21:15:33] Ignite documentation: http://ignite.apache.org
[21:15:33] 
[21:15:33] Quiet mode.
[21:15:33] ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[21:15:33] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or 
"-v" to ignite.\{sh|bat}
[21:15:33] 
[21:15:33] OS: Windows 10 10.0 amd64
[21:15:33] VM information: OpenJDK Runtime Environment 1.8.0_265-b01 Red Hat, 
Inc. OpenJDK 64-Bit Server VM 25.265-b01
[21:15:33] Please set system property '-Djava.net.preferIPv4Stack=true' to 
avoid possible problems in mixed environments.
[21:15:33] Initial heap size is 256MB (should be no less than 512MB, use 
-Xms512m -Xmx512m).
[21:15:33] Configured plugins:
[21:15:33] ^-- None
[21:15:33] 
[21:15:33] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler 
[tryStop=false, timeout=0, super=AbstractFailureHandler 
[ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, 
SYSTEM_CRITICAL_OPERATION_TIMEOUT]]]]
[21:15:34] 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.
[21:15:35] Security status [authentication=off, sandbox=off, tls/ssl=off]
[21:15:39] Encryption keys loaded from metastore. [grps=, masterKeyName=null]
[21:15:40] Data Regions Started: 5
[21:15:40] ^-- sysMemPlc region [type=internal, persistence=true, 
lazyAlloc=false,
[21:15:40] ... initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, 
allocRam=100MB, allocTotal=0MB]
[21:15:40] ^-- default region [type=default, persistence=true, lazyAlloc=true,
[21:15:40] ... initCfg=256MB, maxCfg=3268MB, usedRam=0MB, freeRam=100%, 
allocRam=0MB, allocTotal=0MB]
[21:15:40] ^-- metastoreMemPlc region [type=internal, persistence=true, 
lazyAlloc=false,
[21:15:40] ... initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, 
allocRam=100MB, allocTotal=0MB]
[21:15:40] ^-- TxLog region [type=internal, persistence=true, lazyAlloc=false,
[21:15:40] ... initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, 
allocRam=100MB, allocTotal=0MB]
[21:15:40] ^-- volatileDsMemPlc region [type=user, persistence=false, 
lazyAlloc=true,
[21:15:40] ... initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, 
allocRam=0MB]
[21:15:40] ^-- Ignite persistence [used=0MB]
[21:16:14] Default character encoding is windows-1252. Specify UTF-8 character 
encoding by setting -Dfile.encoding=UTF-8 JVM parameter. Differing character 
encodings across cluster may lead to erratic behavior.
[21:16:14] Performance suggestions for grid 'RADAR_CACHE' (fix if possible)
[21:16:14] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[21:16:14] ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM options)
[21:16:14] ^-- Specify JVM heap max size (add '-Xmx<size>[g|G|m|M|k|K]' to JVM 
options)
[21:16:14] ^-- Set max direct memory size if getting 'OOME: Direct buffer 
memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
[21:16:14] Refer to this page for more performance suggestions: 
https://apacheignite.readme.io/docs/jvm-and-system-tuning
[21:16:14] 
[21:16:14] To start Console Management & Monitoring run ignitevisorcmd.\{sh|bat}
[21:16:14] 
[21:16:14] Ignite node started OK (id=d5e93531, instance name=RADAR_CACHE)
[21:16:14] Topology snapshot [ver=1, locNode=d5e93531, servers=1, clients=0, 
state=INACTIVE, CPUs=4, offheap=3.2GB, heap=3.5GB]
[21:16:14] ^-- Baseline [id=0, size=1, online=1, offline=0]
[21:16:14] ^-- All baseline nodes are online, will start auto-activation
1
Nov 01, 2021 9:16:22 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Failed to activate node components 
[nodeId=d5e93531-c9f5-41b2-9758-e7f77b249fa5, client=false, 
topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], newState=ACTIVE]
java.lang.IllegalStateException: Duplicate key
 at org.apache.ignite.cache.QueryEntity.checkIndexes(QueryEntity.java:234)
 at org.apache.ignite.cache.QueryEntity.makePatch(QueryEntity.java:185)
 at 
org.apache.ignite.internal.processors.query.QuerySchema.makePatch(QuerySchema.java:143)
 at 
org.apache.ignite.internal.processors.query.QuerySchema.makePatch(QuerySchema.java:101)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheContext(GridCacheProcessor.java:2004)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$null$6a5b31b9$1(GridCacheProcessor.java:1862)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$prepareStartCachesIfPossible$14(GridCacheProcessor.java:1803)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$prepareStartCaches$926b6886$1(GridCacheProcessor.java:1859)
 at 
org.apache.ignite.internal.util.IgniteUtils.doInParallel(IgniteUtils.java:11375)
 at 
org.apache.ignite.internal.util.IgniteUtils.doInParallel(IgniteUtils.java:11277)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareStartCaches(GridCacheProcessor.java:1854)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareStartCachesIfPossible(GridCacheProcessor.java:1801)
 at 
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.processCacheStartRequests(CacheAffinitySharedManager.java:999)
 at 
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:885)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onClusterStateChangeRequest(GridDhtPartitionsExchangeFuture.java:1323)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:942)
 at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3383)
 at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:3205)
 at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
 at java.lang.Thread.run(Thread.java:748)
 Suppressed: java.lang.IllegalStateException: Duplicate key
 ... 20 more
 Suppressed: java.lang.IllegalStateException: Duplicate key
 ... 20 more
 Suppressed: java.lang.IllegalStateException: Duplicate key
 ... 20 more
 Suppressed: java.lang.IllegalStateException: Duplicate key
 ... 20 more

Nov 01, 2021 9:16:22 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Failed to reinitialize local partitions (rebalancing will be stopped): 
GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, 
minorTopVer=1], discoEvt=DiscoveryCustomEvent 
[customMsg=ChangeGlobalStateMessage 
[id=8633e6edc71-eda2a793-84ed-4e98-85d0-48bd1392e51d, 
reqId=9e67f018-432c-43bd-a775-b46e3c95f6fe, 
initiatingNodeId=d5e93531-c9f5-41b2-9758-e7f77b249fa5, state=ACTIVE, 
baselineTopology=BaselineTopology [id=0, branchingHash=423130670, 
branchingType='Cluster activation', 
baselineNodes=[c11a4f93-8299-40aa-9d7c-760ac7c70f1d]], 
forceChangeBaselineTopology=false, timestamp=1635819374248, 
forceDeactivation=true], affTopVer=AffinityTopologyVersion [topVer=1, 
minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode 
[id=d5e93531-c9f5-41b2-9758-e7f77b249fa5, 
consistentId=c11a4f93-8299-40aa-9d7c-760ac7c70f1d, addrs=ArrayList 
[0:0:0:0:0:0:0:1, 10.98.97.68, 127.0.0.1, 172.22.240.1, 172.26.160.1, 
192.168.86.80], sockAddrs=HashSet [nchikkal-PC.mshome.net/172.22.240.1:47500, 
nchikkal-PC/10.98.97.68:47500, /0:0:0:0:0:0:0:1:47500, 
host.docker.internal/192.168.86.80:47500, /127.0.0.1:47500, 
/172.26.160.1:47500], discPort=47500, order=1, intOrder=1, 
lastExchangeTime=1635819349727, loc=true, ver=2.11.0#20210911-sha1:8f3f07d3, 
isClient=false], topVer=1, msgTemplate=null, 
span=o.a.i.i.processors.tracing.NoopSpan@6f71fb4, nodeId8=d5e93531, msg=null, 
type=DISCOVERY_CUSTOM_EVT, tstamp=1635819374269]], nodeId=d5e93531, 
evt=DISCOVERY_CUSTOM_EVT]
java.lang.NullPointerException



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to