You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Daschinsky (Jira)" <ji...@apache.org> on 2021/06/10 07:52:00 UTC
[jira] [Updated] (IGNITE-14868) Failed to get jCache proxy of
already started cache within transaction while handling thin client
request.
[ https://issues.apache.org/jira/browse/IGNITE-14868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Daschinsky updated IGNITE-14868:
-------------------------------------
Attachment: StartTxOnDifferentNodeTest.java
> Failed to get jCache proxy of already started cache within transaction while handling thin client request.
> ----------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-14868
> URL: https://issues.apache.org/jira/browse/IGNITE-14868
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.10
> Reporter: Ivan Daschinsky
> Priority: Major
> Attachments: StartTxOnDifferentNodeTest.java
>
>
> Description of attached reproducer.
> # Start 2 server nodes
> # Start cache on the first server node (simulate processing of thin client request)
> # Start tx on the second server node after starting cache on the first node returns (using {{CyclicBarrier}} for example. Get cache instance by name inside tx block using
> {{org.apache.ignite.Ignite#cache}} (That is the way the {{org.apache.ignite.internal.processors.platform.client.ClientRequestHandler}} works
> # Repeat until failure occurs
> {code}
> Failure in thread: Thread [id=135, name=tx-thread-2]
> class org.apache.ignite.IgniteException: Cannot start/stop cache within lock or transaction [cacheNames=tx_cache, operation=dynamicStartCache]
> at org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager.checkEmptyTransactions(IgniteTxManager.java:2982)
> at org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:3487)
> at org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:3431)
> at org.apache.ignite.internal.processors.cache.GridCacheProcessor.publicJCache(GridCacheProcessor.java:4517)
> at org.apache.ignite.internal.IgniteKernal.cache(IgniteKernal.java:3194)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)