[ 
https://issues.apache.org/jira/browse/IGNITE-16300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481214#comment-17481214
 ] 

Ali Ferda Arikan commented on IGNITE-16300:
-------------------------------------------

1) I tried to reproduce the issue using the same setup as before and I can 
confirm that I cannot reproduce the issue. My guess is that some other issue 
probably related with our environment might have caused the error above.  

2) Maybe issue is gone but still some information about our setup. We use 
TcpDiscoveryStaticIpFinder to form the cluster which is deployed in a rancher 
environment running workers on Azure. We have two singleton services deployed 
which perform less frequent cache operations. A market data ComputeTask which 
uses distributed jobs to load market data into the cache - at the moment one by 
one- about 8k entries. We will switch to a data loader later. Graphql triggered 
IComputeFunc's that perform cache reads to perform computations using market 
data. We have sql enabled cache entries so we can run fast queries on the data. 
Finally we use messaging to deal with async operations such as remote data 
access from file systems or other api's. 

Our cache operations are always executed from a IComputeFunc or IComputeJob, we 
don't use the async api for cache read/write. When the error was occurring I 
was getting the error above when I run the cluster locally on my dev machine 
with two nodes. However I didn't see an error message on the cloud deployed 
version but I wasn't getting a response from ignite compute jobs. 

> .NET: Failed to wait for asynchronous operation permit
> ------------------------------------------------------
>
>                 Key: IGNITE-16300
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16300
>             Project: Ignite
>          Issue Type: New Feature
>          Components: compute
>    Affects Versions: 2.11.1
>            Reporter: Ali Ferda Arikan
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: newbie
>
> We have an ignite cluster with native storage enabled which we use as a 
> distributed database and compute engine which is embedded in a .net 
> application. 
> As we are aware that .NET5 is supported we use that framework. 
> When we try to upgrade our cluster to use .NET6 we get the below error. It is 
> hard to tell if it is something else or some minor incompatibility causing an 
> error somewhere. However, reverting to .NET5 makes the issue disappear. So I 
> assume we need .NET6 to be officially supported.
> {code:java}
> Apache.Ignite.Core.Cache.CacheException: 'class 
> org.apache.ignite.IgniteInterruptedException: Failed to wait for asynchronous 
> operation permit (thread got interrupted).'JavaException: 
> javax.cache.CacheException: class 
> org.apache.ignite.IgniteInterruptedException: Failed to wait for asynchronous 
> operation permit (thread got interrupted).
>     at 
> org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1266)
>     at 
> org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.cacheException(IgniteCacheProxyImpl.java:2084)
>     at 
> org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.get(IgniteCacheProxyImpl.java:1111)
>     at 
> org.apache.ignite.internal.processors.cache.GatewayProtectedCacheProxy.get(GatewayProtectedCacheProxy.java:688)
>     at 
> org.apache.ignite.internal.processors.platform.cache.PlatformCache.processInStreamOutLong(PlatformCache.java:455)
>     at 
> org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inStreamOutLong(PlatformTargetProxyImpl.java:67)
>     at 
> org.apache.ignite.internal.processors.platform.callback.PlatformCallbackUtils.inLongLongLongObjectOutLong(Native
>  Method)
>     at 
> org.apache.ignite.internal.processors.platform.callback.PlatformCallbackGateway.computeJobExecuteLocal(PlatformCallbackGateway.java:312)
>     at 
> org.apache.ignite.internal.processors.platform.compute.PlatformAbstractJob.runLocal(PlatformAbstractJob.java:134)
>     at 
> org.apache.ignite.internal.processors.platform.compute.PlatformClosureJob.execute0(PlatformClosureJob.java:94)
>     at 
> org.apache.ignite.internal.processors.platform.compute.PlatformAbstractJob.execute(PlatformAbstractJob.java:80)
>     at 
> org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:601)
>     at 
> org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:7126)
>     at 
> org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:595)
>     at 
> org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:522)
>     at 
> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
>     at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
>     at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
>     at java.base/java.lang.Thread.run(Thread.java:831)
> Caused by: class org.apache.ignite.IgniteInterruptedException: Failed to wait 
> for asynchronous operation permit (thread got interrupted).
>     at 
> org.apache.ignite.internal.util.IgniteUtils$3.apply(IgniteUtils.java:919)
>     at 
> org.apache.ignite.internal.util.IgniteUtils$3.apply(IgniteUtils.java:917)
>     ... 19 more
> Caused by: java.lang.InterruptedException
>     at 
> java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1047)
>     at java.base/java.util.concurrent.Semaphore.acquire(Semaphore.java:318)
>     at 
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.asyncOpAcquire(GridCacheAdapter.java:4710)
>     at 
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:777)
>     at 
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.getAsync(GridDhtAtomicCache.java:483)
>     at 
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:4894)
>     at 
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.repairableGet(GridCacheAdapter.java:4860)
>     at 
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:1476)
>     at 
> org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.get(IgniteCacheProxyImpl.java:1108)
>     ... 16 more{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to