[JBoss JIRA] (ISPN-4057) ClusteredCacheConfigurationTest.testQueueFlushIntervalMemcached random failures
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-4057?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-4057:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
> ClusteredCacheConfigurationTest.testQueueFlushIntervalMemcached random failures
> -------------------------------------------------------------------------------
>
> Key: ISPN-4057
> URL: https://issues.jboss.org/browse/ISPN-4057
> Project: Infinispan
> Issue Type: Feature Request
> Components: Test Suite - Server
> Affects Versions: 6.0.1.Final
> Reporter: Dan Berindei
> Assignee: Mircea Markus
> Labels: testsuite_stability
> Fix For: 7.0.0.Beta1
>
>
> This code will always fail (lines 109-110):
> {noformat}
> assertNotNull(mc1.get("k2"));
> assertNull(mc1.get("k2"));
> {noformat}
> However, this code path is not hit often, so the failures are quite rare.
> I think the second line should be {{assertNull(mc2.get("k2"));}}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 5 months
[JBoss JIRA] (ISPN-4118) Unreliable test: ThreadLocalLeakTest.testCheckThreadLocalLeaks
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-4118?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-4118:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
> Unreliable test: ThreadLocalLeakTest.testCheckThreadLocalLeaks
> --------------------------------------------------------------
>
> Key: ISPN-4118
> URL: https://issues.jboss.org/browse/ISPN-4118
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Reporter: Sanne Grinovero
> Assignee: Dan Berindei
> Priority: Minor
> Fix For: 7.0.0.Beta1
>
>
> {noformat}Tests run: 4277, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 413.34 sec <<< FAILURE!
> testCheckThreadLocalLeaks(org.infinispan.util.ThreadLocalLeakTest) Time elapsed: 0.022 sec <<< FAILURE!
> java.lang.IllegalStateException: Thread locals still present: {ForkThread-1,ThreadLocalLeakTest={java.lang.ThreadLocal@45cd9a4c=org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8$CounterHashCode(a)3d4d1761}}
> at org.infinispan.util.ThreadLocalLeakTest.testCheckThreadLocalLeaks(ThreadLocalLeakTest.java:87)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Results :
> Failed tests:
> ThreadLocalLeakTest.testCheckThreadLocalLeaks:87 IllegalState Thread locals st...
> Tests run: 4277, Failures: 1, Errors: 0, Skipped: 0
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 5 months
[JBoss JIRA] (ISPN-4129) Add Query, CDI, JCache, LevelDB and REST to the AS modules
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-4129?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-4129:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
> Add Query, CDI, JCache, LevelDB and REST to the AS modules
> ----------------------------------------------------------
>
> Key: ISPN-4129
> URL: https://issues.jboss.org/browse/ISPN-4129
> Project: Infinispan
> Issue Type: Feature Request
> Components: Build process
> Affects Versions: 7.0.0.Alpha1
> Reporter: Tristan Tarrant
> Assignee: Pedro Ruivo
> Fix For: 7.0.0.Beta1, 7.0.0.Final
>
>
> Query, CDI, JCache, LevelDB and REST modules need to be added to the AS modules we ship
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 5 months
[JBoss JIRA] (ISPN-4166) useSynchronization should be disabled by default
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-4166?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-4166:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
> useSynchronization should be disabled by default
> ------------------------------------------------
>
> Key: ISPN-4166
> URL: https://issues.jboss.org/browse/ISPN-4166
> Project: Infinispan
> Issue Type: Feature Request
> Components: Configuration, Transactions
> Affects Versions: 6.0.2.Final
> Reporter: Dan Berindei
> Assignee: Ion Savin
> Priority: Critical
> Fix For: 7.0.0.Beta1, 7.0.0.Final
>
>
> When Infinispan registers with the transaction manager as a synchronization, failures during commit are not reported to the user.
> Even if registering as a synchronization is faster in some cases, the default should be the safe version.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 5 months
[JBoss JIRA] (ISPN-4163) CacheAuthorizationTest.testAllCombinations always fails on JDK8
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-4163?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-4163:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
> CacheAuthorizationTest.testAllCombinations always fails on JDK8
> ---------------------------------------------------------------
>
> Key: ISPN-4163
> URL: https://issues.jboss.org/browse/ISPN-4163
> Project: Infinispan
> Issue Type: Bug
> Components: Security, Test Suite - Core
> Affects Versions: 7.0.0.Alpha1
> Reporter: Dan Berindei
> Assignee: Tristan Tarrant
> Labels: testsuite_stability
> Fix For: 7.0.0.Beta1
>
>
> JDK8 added some new default methods to ConcurrentMap, and SecureCacheTestDriver doesn't cover them. This actually raises the question of whether we could provide our own implementations while still keeping compatibility with JDK6...
> {noformat}
> java.lang.Exception: Class org.infinispan.security.SecureCacheTestDriver needs to declare a method with the following signature: void testReplaceAll_BiFunction(SecureCache<String, String> cache) {}
> at org.infinispan.security.CacheAuthorizationTest.testAllCombinations(CacheAuthorizationTest.java:158)
> Caused by: java.lang.NoSuchMethodException: org.infinispan.security.SecureCacheTestDriver.testReplaceAll_BiFunction(org.infinispan.security.SecureCache)
> at java.lang.Class.getMethod(Class.java:1773)
> at org.infinispan.security.CacheAuthorizationTest.testAllCombinations(CacheAuthorizationTest.java:109) ... 20 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 5 months
[JBoss JIRA] (ISPN-4159) DefaultTwoWayKey2StringMapper encodes objects to strings in a manner that is incompatible with string handling of some databases
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-4159?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-4159:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
> DefaultTwoWayKey2StringMapper encodes objects to strings in a manner that is incompatible with string handling of some databases
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-4159
> URL: https://issues.jboss.org/browse/ISPN-4159
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 6.0.0.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 7.0.0.Beta1, 7.0.0.Final
>
>
> DefaultTwoWayKey2StringMapper uses two neat tricks.
> 1. it does not encode all supported types, it only encodes non-Strings. Strings are kept unmodified.
> 2. it uses a special prefix (unicode char 0xfeff) to mark which strings were encoded and which are plain.
> Unfortunately some databases, notably MySql, interpret the endianness mark (0xfeff, 0xfffe), convert to native byte order and then drop it.
> This leaves us with no clue the string is not an actual String but an encoded representation of another type. This misinterpretation leads later to ClassCastExceptions in various places in core and user code.
> Proposed fix: get rid of #1 and #2 optimisations. Encode all objects, including Strings and always use the ?n prefix (where n stands for the original type). Drop the 0xFEFF marker prefix.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 5 months