[infinispan-issues] [JBoss JIRA] (ISPN-6449) DistSyncNonTxStateTransferTest.testCancelStateTransfer sometimes hangs
Dan Berindei (JIRA)
issues at jboss.org
Wed Mar 30 16:48:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-6449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184236#comment-13184236 ]
Dan Berindei commented on ISPN-6449:
------------------------------------
Reproduced locally, it happens when the coordinator of the LON site is not the primary owner of any of the 8 keys used by the test:
{noformat}
21:45:02,028 INFO (testng-DistSyncNonTxStateTransferTest:[]) [JGroupsTransport] ISPN000094: Received new cluster view for channel ISPN(SITE LON): [NodeBM-58441|1] (2) [NodeBM-58441, NodeBN-64420]
21:45:02,273 INFO (testng-DistSyncNonTxStateTransferTest:[]) [JGroupsTransport] ISPN000094: Received new cluster view for channel ISPN(SITE NYC): [NodeBO-21452|1] (2) [NodeBO-21452, NodeBP-61703]
21:45:02,397 INFO (testng-DistSyncNonTxStateTransferTest:[]) [TestSuiteProgress] Test starting: testCancelStateTransfer(org.infinispan.xsite.statetransfer.DistSyncNonTxStateTransferTest)
21:45:02,423 TRACE (remote-thread-NodeBO-p530-t6:[]) [JGroupsTransport] dests=null, command=XSiteStateTransferControlCommand{control=START_RECEIVE, siteName='LON', statusOk=false, cacheName='___defaultcache'}, mode=SYNCHRONOUS, timeout=15000
21:45:02,424 TRACE (testng-DistSyncNonTxStateTransferTest:[]) [JGroupsTransport] dests=null, command=XSiteStateTransferControlCommand{control=START_SEND, siteName='NYC', statusOk=false, cacheName='___defaultcache'}, mode=SYNCHRONOUS_IGNORE_LEAVERS, timeout=15000
21:45:02,425 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-1' to current chunk
21:45:02,425 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-0' to current chunk
21:45:02,425 TRACE (testng-DistSyncNonTxStateTransferTest:[]) [JGroupsTransport] Waiting for at least one command to block
21:45:02,425 TRACE (transport-thread-NodeBN-p524-t4:[]) [JGroupsTransport] About to send to backups [NYC (sync, timeout=2000)], command XSiteStatePushCommand{cacheName=___defaultcache, timeout=2000 (2 keys)}
21:45:02,429 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-5' to current chunk
21:45:02,429 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-4' to current chunk
21:45:02,429 TRACE (transport-thread-NodeBN-p524-t4:[]) [JGroupsTransport] About to send to backups [NYC (sync, timeout=2000)], command XSiteStatePushCommand{cacheName=___defaultcache, timeout=2000 (2 keys)}
21:45:02,431 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-3' to current chunk
21:45:02,431 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-2' to current chunk
21:45:02,431 TRACE (transport-thread-NodeBN-p524-t4:[]) [JGroupsTransport] About to send to backups [NYC (sync, timeout=2000)], command XSiteStatePushCommand{cacheName=___defaultcache, timeout=2000 (2 keys)}
21:45:02,449 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-7' to current chunk
21:45:02,449 TRACE (transport-thread-NodeBN-p524-t4:[]) [XSiteStateProviderImpl] Added key 'key-6' to current chunk
21:45:02,449 TRACE (transport-thread-NodeBN-p524-t4:[]) [JGroupsTransport] About to send to backups [NYC (sync, timeout=2000)], command XSiteStatePushCommand{cacheName=___defaultcache, timeout=2000 (2 keys)}
{noformat}
> DistSyncNonTxStateTransferTest.testCancelStateTransfer sometimes hangs
> ----------------------------------------------------------------------
>
> Key: ISPN-6449
> URL: https://issues.jboss.org/browse/ISPN-6449
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 8.2.0.Final
> Reporter: Dan Berindei
> Labels: testsuite_stability
>
> {{ControlledTransport.waitForCommandToBlock}} should use a timeout:
> {noformat}
> "testng-DistSyncNonTxStateTransferTest" #13 prio=5 os_prio=0 tid=0x00007f571cd8d800 nid=0xb8c waiting on condition [0x00007f56c4184000]
> java.lang.Thread.State: WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for <0x00000000a850a2d0> (a org.infinispan.util.concurrent.ReclosableLatch)
> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:997)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
> at org.infinispan.util.concurrent.ReclosableLatch.await(ReclosableLatch.java:58)
> at org.infinispan.remoting.transport.ControlledTransport.waitForCommandToBlock(ControlledTransport.java:72)
> at org.infinispan.xsite.statetransfer.BaseStateTransferTest.testCancelStateTransfer(BaseStateTransferTest.java:92)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list