Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43529200C92 for ; Mon, 29 May 2017 06:54:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 41DEF160BD8; Mon, 29 May 2017 04:54:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 66DE1160BCC for ; Mon, 29 May 2017 06:54:03 +0200 (CEST) Received: (qmail 86292 invoked by uid 500); 29 May 2017 04:54:02 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 86282 invoked by uid 99); 29 May 2017 04:54:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2017 04:54:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B6AFB1A038C for ; Mon, 29 May 2017 04:54:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sqv4io9lm4pW for ; Mon, 29 May 2017 04:53:58 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1F4985F297 for ; Mon, 29 May 2017 04:53:57 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mwork.nabble.com (Postfix) with ESMTP id F34AC4582D95F for ; Sun, 28 May 2017 21:53:56 -0700 (MST) Date: Sun, 28 May 2017 21:53:56 -0700 (MST) From: rickynauvaldy To: user@ignite.apache.org Message-ID: <1496033636990-13186.post@n6.nabble.com> In-Reply-To: References: <1495445695934-13054.post@n6.nabble.com> <1495527584625-13080.post@n6.nabble.com> <1495533682884-13081.post@n6.nabble.com> Subject: Re: Client Server Persistent Store Fault Tolerance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 29 May 2017 04:54:04 -0000 So I've been trying to do the case using write through only, but when I stopped one of the server, exception appeared: > Exception in thread "main" javax.cache.CacheException: class > org.apache.ignite.cluster.ClusterTopologyException: Failed to acquire lock > for keys (primary node left grid, retry transaction if possible) > [keys=[UserKeyCacheObjectImpl [part=1, val=1, hasValBytes=true]], > node=d46c85bc-bd55-4731-b390-05e86fa68af6] > at > org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1421) > at > org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:2641) > at > org.apache.ignite.internal.processors.cache.IgniteCacheProxy.get(IgniteCacheProxy.java:1205) > at > myexamples.store.TransactionClient1.deposit(TransactionClient1.java:107) > at myexamples.store.TransactionClient1.main(TransactionClient1.java:46) > Caused by: class org.apache.ignite.cluster.ClusterTopologyException: > Failed to acquire lock for keys (primary node left grid, retry transaction > if possible) [keys=[UserKeyCacheObjectImpl [part=1, val=1, > hasValBytes=true]], node=d46c85bc-bd55-4731-b390-05e86fa68af6] > at > org.apache.ignite.internal.util.IgniteUtils$7.apply(IgniteUtils.java:812) > at > org.apache.ignite.internal.util.IgniteUtils$7.apply(IgniteUtils.java:810) > ... 5 more > Caused by: class > org.apache.ignite.internal.cluster.ClusterTopologyCheckedException: Failed > to acquire lock for keys (primary node left grid, retry transaction if > possible) [keys=[UserKeyCacheObjectImpl [part=1, val=1, > hasValBytes=true]], node=d46c85bc-bd55-4731-b390-05e86fa68af6] > at > org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture.newTopologyException(GridDhtColocatedLockFuture.java:1319) > at > org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture.access$1900(GridDhtColocatedLockFuture.java:85) > at > org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture$MiniFuture.onResult(GridDhtColocatedLockFuture.java:1469) > at > org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture.onNodeLeft(GridDhtColocatedLockFuture.java:414) > at > org.apache.ignite.internal.processors.cache.GridCacheMvccManager$4.onEvent(GridCacheMvccManager.java:263) > at > org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager$LocalListenerWrapper.onEvent(GridEventStorageManager.java:1311) > at > org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager.notifyListeners(GridEventStorageManager.java:892) > at > org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager.record0(GridEventStorageManager.java:340) > at > org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager.record(GridEventStorageManager.java:307) > at > org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$DiscoveryWorker.recordEvent(GridDiscoveryManager.java:2277) > at > org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$DiscoveryWorker.body0(GridDiscoveryManager.java:2474) > at > org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$DiscoveryWorker.body(GridDiscoveryManager.java:2306) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) > at java.lang.Thread.run(Unknown Source) > Caused by: class > org.apache.ignite.internal.cluster.ClusterTopologyCheckedException: Failed > to acquire lock for keys (primary node left grid, retry transaction if > possible) [keys=[UserKeyCacheObjectImpl [part=1, val=1, > hasValBytes=true]], node=d46c85bc-bd55-4731-b390-05e86fa68af6] > at > org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture.newTopologyException(GridDhtColocatedLockFuture.java:1319) > ... 11 more I saw this post [1], but I still don't get the /this means it has been already acquired/ part. What should I do? I used Transactions with /pessimistic /concurency with /serializable /isolation. When I try to change the isolation to /repeatable_read/, another exception is shown: > Exception in thread "main" class org.apache.ignite.IgniteException: Failed > to commit transaction: > GridNearTxLocal[id=ec0e9825c51-00000000-0668-82bc-0000-00000000001d, > concurrency=PESSIMISTIC, isolation=REPEATABLE_READ, state=ROLLED_BACK, > invalidate=false, rollbackOnly=true, > nodeId=bc2cac44-08b4-43e3-9316-c54bb8ca4679, duration=3859] > at > org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:949) > at > org.apache.ignite.internal.processors.cache.transactions.TransactionProxyImpl.rollback(TransactionProxyImpl.java:314) > at > myexamples.store.TransactionClient1.deposit(TransactionClient1.java:122) > at myexamples.store.TransactionClient1.main(TransactionClient1.java:41) > Caused by: class org.apache.ignite.IgniteCheckedException: Failed to > commit transaction: > GridNearTxLocal[id=ec0e9825c51-00000000-0668-82bc-0000-00000000001d, > concurrency=PESSIMISTIC, isolation=REPEATABLE_READ, state=ROLLED_BACK, > invalidate=false, rollbackOnly=true, > nodeId=bc2cac44-08b4-43e3-9316-c54bb8ca4679, duration=3859] > at > org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFinishFuture.finish(GridNearTxFinishFuture.java:423) > at > org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal.rollbackNearTxLocalAsync(GridNearTxLocal.java:3246) > at > org.apache.ignite.internal.processors.cache.GridCacheSharedContext.rollbackTxAsync(GridCacheSharedContext.java:855) > at > org.apache.ignite.internal.processors.cache.transactions.TransactionProxyImpl.rollback(TransactionProxyImpl.java:306) > ... 2 more Any suggestion? Thanks. -- Ricky [1] http://apache-ignite-users.70518.x6.nabble.com/Enter-Lock-is-not-working-td8040.html ----- -- Ricky -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Client-Server-Persistent-Store-Fault-Tolerance-tp13054p13186.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.