[JBoss JIRA] (ISPN-4428) SecurityManagerCacheAuthorizationTest.testAllCombinations fails due to missing permission
by Vojtech Juranek (JIRA)
Vojtech Juranek created ISPN-4428:
-------------------------------------
Summary: SecurityManagerCacheAuthorizationTest.testAllCombinations fails due to missing permission
Key: ISPN-4428
URL: https://issues.jboss.org/browse/ISPN-4428
Project: Infinispan
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Test Suite - Core
Reporter: Vojtech Juranek
Assignee: Tristan Tarrant
{{SecurityManagerCacheAuthorizationTest.testAllCombinations}} fails with
{noformat}
java.security.PrivilegedActionException: java.lang.Exception: Unexpected non-SecurityException
at org.infinispan.security.Security.doAs(Security.java:145)
at org.infinispan.security.CacheAuthorizationTest.testAllCombinations(CacheAuthorizationTest.java:139)
at org.infinispan.security.SecurityManagerCacheAuthorizationTest.testAllCombinations(SecurityManagerCacheAuthorizationTest.java:21)
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)
Caused by: java.lang.Exception: Unexpected non-SecurityException
at org.infinispan.security.CacheAuthorizationTest$5.run(CacheAuthorizationTest.java:158)
at org.infinispan.security.CacheAuthorizationTest$5.run(CacheAuthorizationTest.java:139)
at org.infinispan.security.Security.doAs(Security.java:143)
... 22 more
Caused by: java.lang.reflect.InvocationTargetException
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.infinispan.security.CacheAuthorizationTest$5.run(CacheAuthorizationTest.java:143)
... 24 more
Caused by: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.container.versioning.NumericVersionGenerator.start() on object of type NumericVersionGenerator
at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:869)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:638)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:627)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:530)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:216)
at org.infinispan.CacheImpl.start(CacheImpl.java:696)
at org.infinispan.security.impl.SecureCacheImpl.start(SecureCacheImpl.java:75)
at org.infinispan.security.SecureCacheTestDriver.testStop(SecureCacheTestDriver.java:148)
... 29 more
Caused by: java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'Subject:
Principal: TestPrincipal [name=LIFECYCLE]
Principal: TestPrincipal [name=LIFECYCLE_user]
' lacks 'LISTEN' permission
at org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:76)
at org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:54)
at org.infinispan.manager.DefaultCacheManager.addListener(DefaultCacheManager.java:657)
at org.infinispan.container.versioning.NumericVersionGenerator.start(NumericVersionGenerator.java:51)
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.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
... 37 more
{noformat}
For details see e.g. [jenkins job|https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/j...]. Seem to happen on all platforams and JDKs.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ISPN-4426) Transaction replayed but not committed
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-4426?page=com.atlassian.jira.plugin.... ]
Radim Vansa commented on ISPN-4426:
-----------------------------------
Log is here: https://dl.dropboxusercontent.com/u/103079234/ispn4226.zip
The not committed transaction is {{GlobalTransaction:<edg-perf03-58446>:23655:remote}} executed by {{remote-thread-5}} at 10:07:31-10:07:32. Due to that, write to {{key_0000000000001519}} with value {{\[21 #17: 85, 300, 1263, 2398, 2909, 3485, 3684, 4037, 4473, 4673, 4754, 5156, 5429, 5444, 5595, 5641, 5767, \]}} was lost (notice the last 5767).
The test was executed against this JDG with some logging modifications [https://github.com/rvansa/jdg/tree/t_4426_logs] and with log filters as in [https://svn.devel.redhat.com/repos/jboss-qa/load-testing/etc/jdg-60/log4j...].
> Transaction replayed but not committed
> --------------------------------------
>
> Key: ISPN-4426
> URL: https://issues.jboss.org/browse/ISPN-4426
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: State Transfer
> Affects Versions: 7.0.0.Alpha4
> Reporter: Radim Vansa
> Assignee: Dan Berindei
> Priority: Critical
> Labels: 63gablocker
>
> Dist TX cache, node C is joining. In previous topology, entry is owned by A (primary) and B (backup). In new topology, primary ownership is transferred to C, B stays backup.
> 1. TX is prepared in old topology and is being committed, when topology changes
> 2. on C (the new owner), the TX info is received and later even the old entry
> 3. C receives the CommitCommand, therefore, it correctly replays the PrepareCommand.
> 4. When the entries are about to be committed, in TxInterceptor the transaction is found to be already completed as it has lower TxID.
> Result: the transaction is not being executed and stale data stay on the node (with my algortihm it eventually led to complete entry loss).
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months