You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Yakov Zhdanov (JIRA)" <ji...@apache.org> on 2015/07/24 13:22:04 UTC

[jira] [Created] (IGNITE-1156) FileSwapSpaceSpi iterator does not support remove operations

Yakov Zhdanov created IGNITE-1156:
-------------------------------------

             Summary: FileSwapSpaceSpi iterator does not support remove operations
                 Key: IGNITE-1156
                 URL: https://issues.apache.org/jira/browse/IGNITE-1156
             Project: Ignite
          Issue Type: Bug
            Reporter: Yakov Zhdanov
            Priority: Minor


This makes impossible to undeploy from swap.

See {{org.apache.ignite.internal.processors.cache.GridCacheSwapSelfTest#testSwapDeployment}}

Although swap cannot be cleared (undeployed entries cannot be removed) test passes, since swapped entry cannot be moved back to heap and exception is output.

{code}
[15:14:30,856][ERROR][exchange-worker-#108%cache.GridCacheSwapSelfTest2%][GridCacheSwapManager] <default> Failed to process swap entry.
java.lang.UnsupportedOperationException
	at org.apache.ignite.internal.util.GridCloseableIteratorAdapter.onRemove(GridCloseableIteratorAdapter.java:75)
	at org.apache.ignite.internal.util.GridCloseableIteratorAdapter.removeX(GridCloseableIteratorAdapter.java:66)
	at org.apache.ignite.internal.processors.cache.GridCacheSwapManager.onUndeploy(GridCacheSwapManager.java:1968)
	at org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager.onUndeploy0(GridCacheDeploymentManager.java:254)
	at org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager.access$300(GridCacheDeploymentManager.java:48)
	at org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager$3.apply(GridCacheDeploymentManager.java:215)
	at org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager.unwind(GridCacheDeploymentManager.java:186)
	at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionDemandPool.unwindUndeploys(GridDhtPartitionDemandPool.java:384)
	at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPreloader.unwindUndeploys(GridDhtPreloader.java:541)
	at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:779)
	at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1017)
	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:108)
	at java.lang.Thread.run(Thread.java:724)

{code}


Proper fix would be to support iterator remove operation properly.



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