Cache with invalid name

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cache with invalid name

Vasiliy Sisko
On creation of cache with name “\:” received exception (For MXBean after
‘\’ symbol allowed only ‘\’, ‘”’, ‘?’, ‘*’ and ‘n’ symbols):


[2017-10-27
11:34:48,149][ERROR][exchange-worker-#42%tester%][CacheAffinitySharedManager]
Failed to initialize cache. Will try to rollback cache start routine.
[cacheName=\:]

class org.apache.ignite.IgniteCheckedException: Failed to register MBean
for component:
org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl@4ed73ea8

at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.registerMbean(GridCacheProcessor.java:3600)

at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1565)

at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1799)

at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:751)

at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:882)

at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:588)

at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2279)

at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)

at java.lang.Thread.run(Thread.java:745)

Caused by: javax.management.MalformedObjectNameException: Invalid escape
sequence '\:' in quoted value

at javax.management.ObjectName.construct(ObjectName.java:582)

at javax.management.ObjectName.<init>(ObjectName.java:1382)

at
org.apache.ignite.internal.util.IgniteUtils.makeCacheMBeanName(IgniteUtils.java:4486)

at
org.apache.ignite.internal.util.IgniteUtils.registerCacheMBean(IgniteUtils.java:4574)

at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.registerMbean(GridCacheProcessor.java:3596)

... 8 more


After that creation of cache with normal name not work or generate a lot of
exceptions. F.e:


SEVERE: Failed to wait for completion of partition map exchange (preloading
will not start): GridDhtPartitionsExchangeFuture
[firstDiscoEvt=DiscoveryCustomEvent [customMsg=null,
affTopVer=AffinityTopologyVersion [topVer=1, minorTopVer=3],
super=DiscoveryEvent [evtNode=TcpDiscoveryNode
[id=8c44c48f-b2b2-4fe6-91d3-33081084eaf4, addrs=[0:0:0:0:0:0:0:1%lo,
127.0.0.1, 172.17.0.1, 192.168.1.20], sockAddrs=[
vsisko-notebook.gg/192.168.1.20:47500, /172.17.0.1:47500,
/0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500], discPort=47500, order=1,
intOrder=1, lastExchangeTime=1509079611132, loc=true,
ver=2.1.6#20171011-sha1:b6e23b35, isClient=false], topVer=1,
nodeId8=8c44c48f, msg=null, type=DISCOVERY_CUSTOM_EVT,
tstamp=1509084089862]], crd=TcpDiscoveryNode
[id=8c44c48f-b2b2-4fe6-91d3-33081084eaf4, addrs=[0:0:0:0:0:0:0:1%lo,
127.0.0.1, 172.17.0.1, 192.168.1.20], sockAddrs=[
vsisko-notebook.gg/192.168.1.20:47500, /172.17.0.1:47500,
/0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500], discPort=47500, order=1,
intOrder=1, lastExchangeTime=1509079611132, loc=true,
ver=2.1.6#20171011-sha1:b6e23b35, isClient=false],
exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion
[topVer=1, minorTopVer=3], discoEvt=DiscoveryCustomEvent [customMsg=null,
affTopVer=AffinityTopologyVersion [topVer=1, minorTopVer=3],
super=DiscoveryEvent [evtNode=TcpDiscoveryNode
[id=8c44c48f-b2b2-4fe6-91d3-33081084eaf4, addrs=[0:0:0:0:0:0:0:1%lo,
127.0.0.1, 172.17.0.1, 192.168.1.20], sockAddrs=[
vsisko-notebook.gg/192.168.1.20:47500, /172.17.0.1:47500,
/0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500], discPort=47500, order=1,
intOrder=1, lastExchangeTime=1509079611132, loc=true,
ver=2.1.6#20171011-sha1:b6e23b35, isClient=false], topVer=1,
nodeId8=8c44c48f, msg=null, type=DISCOVERY_CUSTOM_EVT,
tstamp=1509084089862]], nodeId=8c44c48f, evt=DISCOVERY_CUSTOM_EVT],
added=true, initFut=GridFutureAdapter [ignoreInterrupts=false, state=DONE,
res=false, hash=1293926369], init=false, lastVer=null,
partReleaseFut=PartitionReleaseFuture [topVer=AffinityTopologyVersion
[topVer=1, minorTopVer=3], futures=[ExplicitLockReleaseFuture
[topVer=AffinityTopologyVersion [topVer=1, minorTopVer=3], futures=[]],
TxReleaseFuture [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=3],
futures=[]], AtomicUpdateReleaseFuture [topVer=AffinityTopologyVersion
[topVer=1, minorTopVer=3], futures=[]], DataStreamerReleaseFuture
[topVer=AffinityTopologyVersion [topVer=1, minorTopVer=3], futures=[]]]],
exchActions=null, affChangeMsg=null, initTs=1509084089862,
centralizedAff=false, changeGlobalStateE=null, done=true, state=CRD,
evtLatch=0, remaining=[], super=GridFutureAdapter [ignoreInterrupts=false,
state=DONE, res=java.lang.IndexOutOfBoundsException: Index: 0, Size: 0,
hash=82274211]]

class org.apache.ignite.IgniteCheckedException: Index: 0, Size: 0

at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7250)

at
org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:259)

at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:207)

at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:159)

at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2288)

at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(ArrayList.java:657)

at java.util.ArrayList.get(ArrayList.java:433)

at
org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:347)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.<init>(GridDhtLocalPartition.java:187)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.createPartition(GridDhtPartitionTopologyImpl.java:741)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.createPartitions(GridDhtPartitionTopologyImpl.java:430)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions0(GridDhtPartitionTopologyImpl.java:373)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:542)

at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1015)

at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:651)

at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2278)

... 2 more



--
Vasiliy Sisko
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Cache with invalid name

dsetrakyan
Vasiliy, can you please file a ticket?

On Fri, Oct 27, 2017 at 12:07 AM, Vasiliy Sisko <[hidden email]> wrote:

> On creation of cache with name “\:” received exception (For MXBean after
> ‘\’ symbol allowed only ‘\’, ‘”’, ‘?’, ‘*’ and ‘n’ symbols):
>
>
> [2017-10-27
> 11:34:48,149][ERROR][exchange-worker-#42%tester%][
> CacheAffinitySharedManager]
> Failed to initialize cache. Will try to rollback cache start routine.
> [cacheName=\:]
>
> class org.apache.ignite.IgniteCheckedException: Failed to register MBean
> for component:
> org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl@
> 4ed73ea8
>
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.
> registerMbean(GridCacheProcessor.java:3600)
>
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.
> createCache(GridCacheProcessor.java:1565)
>
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.
> prepareCacheStart(GridCacheProcessor.java:1799)
>
> at
> org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.
> onCacheChangeRequest(CacheAffinitySharedManager.java:751)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.
> GridDhtPartitionsExchangeFuture.onCacheChangeRequest(
> GridDhtPartitionsExchangeFuture.java:882)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.
> GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFutur
> e.java:588)
>
> at
> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeMana
> ger$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2279)
>
> at
> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
>
> at java.lang.Thread.run(Thread.java:745)
>
> Caused by: javax.management.MalformedObjectNameException: Invalid escape
> sequence '\:' in quoted value
>
> at javax.management.ObjectName.construct(ObjectName.java:582)
>
> at javax.management.ObjectName.<init>(ObjectName.java:1382)
>
> at
> org.apache.ignite.internal.util.IgniteUtils.makeCacheMBeanName(
> IgniteUtils.java:4486)
>
> at
> org.apache.ignite.internal.util.IgniteUtils.registerCacheMBean(
> IgniteUtils.java:4574)
>
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.
> registerMbean(GridCacheProcessor.java:3596)
>
> ... 8 more
>
>
> After that creation of cache with normal name not work or generate a lot of
> exceptions. F.e:
>
>
> SEVERE: Failed to wait for completion of partition map exchange (preloading
> will not start): GridDhtPartitionsExchangeFuture
> [firstDiscoEvt=DiscoveryCustomEvent [customMsg=null,
> affTopVer=AffinityTopologyVersion [topVer=1, minorTopVer=3],
> super=DiscoveryEvent [evtNode=TcpDiscoveryNode
> [id=8c44c48f-b2b2-4fe6-91d3-33081084eaf4, addrs=[0:0:0:0:0:0:0:1%lo,
> 127.0.0.1, 172.17.0.1, 192.168.1.20], sockAddrs=[
> vsisko-notebook.gg/192.168.1.20:47500, /172.17.0.1:47500,
> /0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500], discPort=47500, order=1,
> intOrder=1, lastExchangeTime=1509079611132, loc=true,
> ver=2.1.6#20171011-sha1:b6e23b35, isClient=false], topVer=1,
> nodeId8=8c44c48f, msg=null, type=DISCOVERY_CUSTOM_EVT,
> tstamp=1509084089862]], crd=TcpDiscoveryNode
> [id=8c44c48f-b2b2-4fe6-91d3-33081084eaf4, addrs=[0:0:0:0:0:0:0:1%lo,
> 127.0.0.1, 172.17.0.1, 192.168.1.20], sockAddrs=[
> vsisko-notebook.gg/192.168.1.20:47500, /172.17.0.1:47500,
> /0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500], discPort=47500, order=1,
> intOrder=1, lastExchangeTime=1509079611132, loc=true,
> ver=2.1.6#20171011-sha1:b6e23b35, isClient=false],
> exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion
> [topVer=1, minorTopVer=3], discoEvt=DiscoveryCustomEvent [customMsg=null,
> affTopVer=AffinityTopologyVersion [topVer=1, minorTopVer=3],
> super=DiscoveryEvent [evtNode=TcpDiscoveryNode
> [id=8c44c48f-b2b2-4fe6-91d3-33081084eaf4, addrs=[0:0:0:0:0:0:0:1%lo,
> 127.0.0.1, 172.17.0.1, 192.168.1.20], sockAddrs=[
> vsisko-notebook.gg/192.168.1.20:47500, /172.17.0.1:47500,
> /0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500], discPort=47500, order=1,
> intOrder=1, lastExchangeTime=1509079611132, loc=true,
> ver=2.1.6#20171011-sha1:b6e23b35, isClient=false], topVer=1,
> nodeId8=8c44c48f, msg=null, type=DISCOVERY_CUSTOM_EVT,
> tstamp=1509084089862]], nodeId=8c44c48f, evt=DISCOVERY_CUSTOM_EVT],
> added=true, initFut=GridFutureAdapter [ignoreInterrupts=false, state=DONE,
> res=false, hash=1293926369], init=false, lastVer=null,
> partReleaseFut=PartitionReleaseFuture [topVer=AffinityTopologyVersion
> [topVer=1, minorTopVer=3], futures=[ExplicitLockReleaseFuture
> [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=3], futures=[]],
> TxReleaseFuture [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=3],
> futures=[]], AtomicUpdateReleaseFuture [topVer=AffinityTopologyVersion
> [topVer=1, minorTopVer=3], futures=[]], DataStreamerReleaseFuture
> [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=3], futures=[]]]],
> exchActions=null, affChangeMsg=null, initTs=1509084089862,
> centralizedAff=false, changeGlobalStateE=null, done=true, state=CRD,
> evtLatch=0, remaining=[], super=GridFutureAdapter [ignoreInterrupts=false,
> state=DONE, res=java.lang.IndexOutOfBoundsException: Index: 0, Size: 0,
> hash=82274211]]
>
> class org.apache.ignite.IgniteCheckedException: Index: 0, Size: 0
>
> at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7250)
>
> at
> org.apache.ignite.internal.util.future.GridFutureAdapter.
> resolve(GridFutureAdapter.java:259)
>
> at
> org.apache.ignite.internal.util.future.GridFutureAdapter.
> get0(GridFutureAdapter.java:207)
>
> at
> org.apache.ignite.internal.util.future.GridFutureAdapter.
> get(GridFutureAdapter.java:159)
>
> at
> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeMana
> ger$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2288)
>
> at
> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
>
> at java.lang.Thread.run(Thread.java:748)
>
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>
> at java.util.ArrayList.rangeCheck(ArrayList.java:657)
>
> at java.util.ArrayList.get(ArrayList.java:433)
>
> at
> org.apache.ignite.internal.processors.cache.CacheGroupContext.
> singleCacheContext(CacheGroupContext.java:347)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.
> dht.GridDhtLocalPartition.<init>(GridDhtLocalPartition.java:187)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.
> GridDhtPartitionTopologyImpl.createPartition(GridDhtPartitionTopologyImpl.
> java:741)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.
> GridDhtPartitionTopologyImpl.createPartitions(
> GridDhtPartitionTopologyImpl.java:430)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.
> GridDhtPartitionTopologyImpl.initPartitions0(GridDhtPartitionTopologyImpl.
> java:373)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.
> GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.
> java:542)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.
> GridDhtPartitionsExchangeFuture.distributedExchange(
> GridDhtPartitionsExchangeFuture.java:1015)
>
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.
> GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFutur
> e.java:651)
>
> at
> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeMana
> ger$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2278)
>
> ... 2 more
>
>
>
> --
> Vasiliy Sisko
> GridGain Systems
> www.gridgain.com
>