ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (IGNITE-1205) Unable to clear caches through Visor
Date Tue, 25 Aug 2015 00:37:46 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Valentin Kulichenko resolved IGNITE-1205.
-----------------------------------------
    Resolution: Fixed

Merged to master.

> Unable to clear caches through Visor 
> -------------------------------------
>
>                 Key: IGNITE-1205
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1205
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: sprint-7
>            Reporter: Pavel Konstantinov
>            Assignee: Valentin Kulichenko
>            Priority: Blocker
>             Fix For: ignite-1.4
>
>
> I reproduced this bug:
> 1) start remote node with example-ignite.xml
> 2) execute CacheJdbcStoreExample in Idea
> 3) start visorcmd with '-v' option
> 4) 'open' connect with example-ignite.xml
> 5) execute 'cache -clear'
> {code}
> visor> cache -clear
> Time of the snapshot: 08/06/15, 10:42:39
> +==========================================================+
> | # |          Name(@)           |    Mode     |   Size    |
> +==========================================================+
> | 0 | CacheJdbcStoreExample(@c0) | PARTITIONED | min: 2    |
> |   |                            |             | avg: 2.00 |
> |   |                            |             | max: 2    |
> +----------------------------------------------------------+
> Choose cache number ('c' to cancel) [c]: 0
> [10:42:41,068][SEVERE][main][GridTaskWorker] Failed to send job request: null
> class org.apache.ignite.IgniteCheckedException: Failed to serialize object: VisorCacheClearJob
[jobCtx=null, lsnr=org.apache.ignite.internal.visor.cache.VisorCacheClearTask$VisorCacheClearJob$1@677ec421,
cacheName=CacheJdbcStoreExample]
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.marshal(OptimizedMarshaller.java:186)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.sendRequest(GridTaskWorker.java:1127)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.processMappedJobs(GridTaskWorker.java:540)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.body(GridTaskWorker.java:432)
>         at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:108)
>         at org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(GridTaskProcessor.java:619)
>         at org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:312)
>         at org.apache.ignite.internal.IgniteComputeImpl.execute(IgniteComputeImpl.java:151)
>         at org.apache.ignite.visor.visor$.execute(visor.scala:1706)
>         at org.apache.ignite.visor.visor$.executeOne(visor.scala:1722)
>         at org.apache.ignite.visor.commands.cache.VisorCacheClearCommand.clear(VisorCacheClearCommand.scala:106)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$cache$1.apply(VisorCacheCommand.scala:280)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$cache$1.apply(VisorCacheCommand.scala:274)
>         at scala.Option.foreach(Option.scala:245)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand.cache(VisorCacheCommand.scala:274)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$20.apply(VisorCacheCommand.scala:783)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$20.apply(VisorCacheCommand.scala:783)
>         at org.apache.ignite.visor.commands.VisorConsole.mainLoop(VisorConsole.scala:199)
>         at org.gridgain.visor.commands.VisorGridGainConsole$.delayedEndpoint$org$gridgain$visor$commands$VisorGridGainConsole$1(VisorGridGainConsole.scala:87)
>         at org.gridgain.visor.commands.VisorGridGainConsole$delayedInit$body.apply(VisorGridGainConsole.scala:76)
>         at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
>         at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
>         at scala.App$$anonfun$main$1.apply(App.scala:76)
>         at scala.App$$anonfun$main$1.apply(App.scala:76)
>         at scala.collection.immutable.List.foreach(List.scala:381)
>         at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
>         at scala.App$class.main(App.scala:76)
>         at org.gridgain.visor.commands.VisorGridGainConsole$.main(VisorGridGainConsole.scala:76)
>         at org.gridgain.visor.commands.VisorGridGainConsole.main(VisorGridGainConsole.scala)
> Caused by: java.io.IOException: Failed to register class: org.apache.ignite.lang.IgniteFuture
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:195)
>         at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.write(OptimizedClassDescriptor.java:618)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeObject0(OptimizedObjectOutputStream.java:217)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeFields(OptimizedObjectOutputStream.java:509)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeSerializable(OptimizedObjectOutputStream.java:321)
>         at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.write(OptimizedClassDescriptor.java:710)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeObject0(OptimizedObjectOutputStream.java:217)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeObjectOverride(OptimizedObjectOutputStream.java:131)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.marshal(OptimizedMarshaller.java:181)
>         ... 28 more
> Caused by: class org.apache.ignite.internal.cluster.ClusterTopologyServerNotFoundException:
Failed to map keys for cache (all partition nodes left the grid).
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map0(GridNearAtomicUpdateFuture.java:674)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:619)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:327)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:776)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:774)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:580)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:774)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.tryPutIfAbsent(GridDhtAtomicCache.java:332)
>         at org.apache.ignite.internal.MarshallerContextImpl.registerClassName(MarshallerContextImpl.java:103)
>         at org.apache.ignite.internal.MarshallerContextAdapter.registerClass(MarshallerContextAdapter.java:149)
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:192)
>         ... 37 more
> [10:42:41,083][SEVERE][main][GridTaskWorker] Failed to reduce job results due to undeclared
user exception [task=o.a.i.i.v.cache.VisorCacheClearTask@72731e63, err=class o.a.i.IgniteException:
Failed to serialize object: VisorCacheClearJob [jobCtx=null, lsnr=o.a.i.i.v.cache.VisorCacheClearT
> class org.apache.ignite.IgniteException: Failed to serialize object: VisorCacheClearJob
[jobCtx=null, lsnr=org.apache.ignite.internal.visor.cache.VisorCacheClearTask$VisorCacheClearJob$1@677ec421,
cacheName=CacheJdbcStoreExample]
>         at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:684)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.sendRequest(GridTaskWorker.java:1189)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.processMappedJobs(GridTaskWorker.java:540)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.body(GridTaskWorker.java:432)
>         at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:108)
>         at org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(GridTaskProcessor.java:619)
>         at org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:312)
>         at org.apache.ignite.internal.IgniteComputeImpl.execute(IgniteComputeImpl.java:151)
>         at org.apache.ignite.visor.visor$.execute(visor.scala:1706)
>         at org.apache.ignite.visor.visor$.executeOne(visor.scala:1722)
>         at org.apache.ignite.visor.commands.cache.VisorCacheClearCommand.clear(VisorCacheClearCommand.scala:106)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$cache$1.apply(VisorCacheCommand.scala:280)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$cache$1.apply(VisorCacheCommand.scala:274)
>         at scala.Option.foreach(Option.scala:245)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand.cache(VisorCacheCommand.scala:274)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$20.apply(VisorCacheCommand.scala:783)
>         at org.apache.ignite.visor.commands.cache.VisorCacheCommand$$anonfun$20.apply(VisorCacheCommand.scala:783)
>         at org.apache.ignite.visor.commands.VisorConsole.mainLoop(VisorConsole.scala:199)
>         at org.gridgain.visor.commands.VisorGridGainConsole$.delayedEndpoint$org$gridgain$visor$commands$VisorGridGainConsole$1(VisorGridGainConsole.scala:87)
>         at org.gridgain.visor.commands.VisorGridGainConsole$delayedInit$body.apply(VisorGridGainConsole.scala:76)
>         at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
>         at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
>         at scala.App$$anonfun$main$1.apply(App.scala:76)
>         at scala.App$$anonfun$main$1.apply(App.scala:76)
>         at scala.collection.immutable.List.foreach(List.scala:381)
>         at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
>         at scala.App$class.main(App.scala:76)
>         at org.gridgain.visor.commands.VisorGridGainConsole$.main(VisorGridGainConsole.scala:76)
>         at org.gridgain.visor.commands.VisorGridGainConsole.main(VisorGridGainConsole.scala)
> Caused by: class org.apache.ignite.IgniteCheckedException: Failed to serialize object:
VisorCacheClearJob [jobCtx=null, lsnr=org.apache.ignite.internal.visor.cache.VisorCacheClearTask$VisorCacheClearJob$1@677ec421,
cacheName=CacheJdbcStoreExample]
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.marshal(OptimizedMarshaller.java:186)
>         at org.apache.ignite.internal.processors.task.GridTaskWorker.sendRequest(GridTaskWorker.java:1127)
>         ... 27 more
> Caused by: java.io.IOException: Failed to register class: org.apache.ignite.lang.IgniteFuture
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:195)
>         at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.write(OptimizedClassDescriptor.java:618)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeObject0(OptimizedObjectOutputStream.java:217)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeFields(OptimizedObjectOutputStream.java:509)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeSerializable(OptimizedObjectOutputStream.java:321)
>         at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.write(OptimizedClassDescriptor.java:710)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeObject0(OptimizedObjectOutputStream.java:217)
>         at org.apache.ignite.marshaller.optimized.OptimizedObjectOutputStream.writeObjectOverride(OptimizedObjectOutputStream.java:131)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.marshal(OptimizedMarshaller.java:181)
>         ... 28 more
> Caused by: class org.apache.ignite.internal.cluster.ClusterTopologyServerNotFoundException:
Failed to map keys for cache (all partition nodes left the grid).
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map0(GridNearAtomicUpdateFuture.java:674)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:619)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:327)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:776)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:774)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:580)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:774)
>         at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.tryPutIfAbsent(GridDhtAtomicCache.java:332)
>         at org.apache.ignite.internal.MarshallerContextImpl.registerClassName(MarshallerContextImpl.java:103)
>         at org.apache.ignite.internal.MarshallerContextAdapter.registerClass(MarshallerContextAdapter.java:149)
>         at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:192)
>         ... 37 more
> (wrn) <visor>: class org.apache.ignite.IgniteException: Failed to serialize object:
VisorCacheClearJob [jobCtx=null, lsnr=org.apache.ignite.internal.visor.cache.VisorCacheClearTask$VisorCacheClearJob$1@677ec421,
cacheName=CacheJdbcStoreExample]
> (wrn) <visor>: Type 'help cache' to see how to use this command.
> visor> [10:43:10,754][INFO][grid-timeout-worker-#17%null%][IgniteKernal]
> Metrics for local node (to disable set 'metricsLogFrequency' to 0)
>     ^-- Node [id=ea51a5c6, name=null]
>     ^-- H/N/C [hosts=1, nodes=1, CPUs=8]
>     ^-- CPU [cur=0,07%, avg=0%, GC=0%]
>     ^-- Heap [used=74MB, free=92,41%, comm=982MB]
>     ^-- Public thread pool [active=0, idle=8, qSize=0]
>     ^-- System thread pool [active=0, idle=8, qSize=0]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message