[JBoss JIRA] (ISPN-2704) AsyncStoreTest.testRestrictionOnAddingToAsyncQueue still fails randomly
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-2704?page=com.atlassian.jira.plugin.... ]
Mircea Markus updated ISPN-2704:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> AsyncStoreTest.testRestrictionOnAddingToAsyncQueue still fails randomly
> -----------------------------------------------------------------------
>
> Key: ISPN-2704
> URL: https://issues.jboss.org/browse/ISPN-2704
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Labels: testsuite_stability
> Fix For: 5.2.0.CR2
>
>
> {code}testRestrictionOnAddingToAsyncQueue(org.infinispan.loaders.decorators.AsyncStoreTest) Time elapsed: 0.05 sec <<< FAILURE!
> org.infinispan.CacheException: AsyncStore stopped; no longer accepting more entries.
> at org.infinispan.loaders.decorators.AsyncStore$State.put(AsyncStore.java:401)
> at org.infinispan.loaders.decorators.AsyncStore.put(AsyncStore.java:140)
> at org.infinispan.loaders.decorators.AsyncStore.remove(AsyncStore.java:243)
> at org.infinispan.loaders.decorators.AsyncStoreTest.doTestRemove(AsyncStoreTest.java:421)
> at org.infinispan.loaders.decorators.AsyncStoreTest.testRestrictionOnAddingToAsyncQueue(AsyncStoreTest.java:147)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
> at org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:680){code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] (ISPN-2300) Versioned Transactional Cache issues
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-2300?page=com.atlassian.jira.plugin.... ]
Mircea Markus commented on ISPN-2300:
-------------------------------------
{quote}In the current code base, when a versioned entry fails to update due to conditional operation not fulfilling the condition, the previous value entry is added to the context with isChanged=true (if present in the cache, as a result of marking RepeatableReadEntry.copyForUpdate), and then EntryWrappingInterceptor loops through all the entries in the context, and if "changed", it will try commit them.{quote}
A better fix would be for the previous value to have its isChanged flag set to false rather than true. The flag being set to true is incorrect, as the entry is not actually changed and might cause problems in other scenarios as well. The value of the flag can be set in the conditional command perform() method.
> Versioned Transactional Cache issues
> ------------------------------------
>
> Key: ISPN-2300
> URL: https://issues.jboss.org/browse/ISPN-2300
> Project: Infinispan
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 5.2.0.Alpha3
> Reporter: Pedro Ruivo
> Assignee: Galder Zamarreño
> Priority: Critical
> Labels: Commands, Conditional, Transactions, Version
> Fix For: 5.2.0.CR2, 5.2.0.Final
>
>
> Description from http://lists.jboss.org/pipermail/infinispan-dev/2012-September/011205.html
> 1) testPutIfAbsent, testRemoveIfPresent, testReplaceWithOldVal (methods
> the test cases)
> In this tests, it was updating the cache entry with a null version. This
> originates later a IllegalStateException when it tries to perform the
> write skew check and the version is null.
> I have fixed this problem in this way: if the command fails (PutCommand,
> RemoveCommand, ReplaceCommand), I unset the flag CHANGED in the
> MvccEntry to avoid to update the entry in the DataContainer.
> 2) testClear in distributed mode
> I have no clear idea how to solve this problem but it looks like the
> PrepareCommand (with the ClearCommand) is not sent to all the nodes in
> the cluster. Then, when I do a get, a remote get is performed and the
> key is still there. I think that it is not the desired behavior.
> 3) testRemoveUnexistingEntry
> In this test, it tries to remove a key that does not exists but it does
> not success due to a NullPointerException. I have looked deeper and I
> check that the transaction's lookup entries map has an entry with [key
> => null] and when it tries to perform the write skew check in that key,
> a NullPointerException is thrown in here [2] (line 80, WriteSkewHelper)
> [1] https://github.com/pruivo/infinispan/tree/t_replace_fix
> [2] https://github.com/pruivo/infinispan/blob/t_replace_fix/core/src/main/jav...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] (ISPN-2700) Solve the scala compilation warnings after upgrading to scala 2.10.0
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-2700?page=com.atlassian.jira.plugin.... ]
Mircea Markus updated ISPN-2700:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Solve the scala compilation warnings after upgrading to scala 2.10.0
> --------------------------------------------------------------------
>
> Key: ISPN-2700
> URL: https://issues.jboss.org/browse/ISPN-2700
> Project: Infinispan
> Issue Type: Feature Request
> Components: Server
> Affects Versions: 5.2.0.CR1
> Reporter: Mircea Markus
> Assignee: Galder Zamarreño
> Fix For: 5.2.0.Final
>
>
> {code}[WARNING] /Users/g/Go/test/infinispan.git/server/core/src/main/scala/org/infinispan/server/core/AbstractProtocolDecoder.scala:176: warning: non-variable type argument org.jboss.netty.buffer.ChannelBuffer in type pattern List[org.jboss.netty.buffer.ChannelBuffer] is unchecked since it is eliminated by erasure
> [INFO] case l: List[ChannelBuffer] => l.foreach(ch.write(_))
> [INFO]{code}
> {code}[WARNING] /Users/g/Go/test/infinispan.git/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodStatsTest.scala:48: warning: Option[String] and Int are unrelated: they will most likely always compare unequal
> [INFO] assertTrue(s.get("timeSinceStart") != 0)
> [INFO] ^
> [WARNING] /Users/g/Go/test/infinispan.git/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodStatsTest.scala:69: warning: Option[String] and Int are unrelated: they will most likely always compare unequal
> [INFO] assertTrue(s.get("totalBytesRead") != 0)
> [INFO] ^
> [WARNING] /Users/g/Go/test/infinispan.git/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodStatsTest.scala:70: warning: Option[String] and Int are unrelated: they will most likely always compare unequal
> [INFO] assertTrue(s.get("totalBytesWritten") != 0)
> [INFO] {code}
> {code}[WARNING] /Users/g/Go/test/infinispan.git/server/memcached/src/test/scala/org/infinispan/server/memcached/test/MemcachedTestingUtil.scala:92: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
> [INFO] null
> [INFO] {code}
> {code}[WARNING] /Users/g/Go/test/infinispan.git/server/rest/src/main/scala/org/infinispan/rest/Server.scala:88: warning: unreachable code
> [INFO] case _ => throw new Exception
> [INFO] {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months