[JBoss JIRA] (ISPN-6577) Indexing properties should be stored in a distinct subresource to ease configuration inheritance
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6577?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6577:
--------------------------------
Fix Version/s: 9.0.0.Alpha2
> Indexing properties should be stored in a distinct subresource to ease configuration inheritance
> ------------------------------------------------------------------------------------------------
>
> Key: ISPN-6577
> URL: https://issues.jboss.org/browse/ISPN-6577
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 8.2.1.Final, 9.0.0.Alpha1
> Reporter: Gustavo Fernandes
> Assignee: Tristan Tarrant
> Priority: Critical
> Fix For: 9.0.0.Alpha2
>
>
> Given the following config:
> {code:xml}
> <replicated-cache-configuration name="indexed-cache" mode="SYNC" start="EAGER" remote-timeout="20000"/>
> <replicated-cache name="booksCache" configuration="indexed-cache">
> <indexing index="LOCAL">
> <property name="default.metadata_cachename">indexMetadataBooksCache</property>
> <property name="default.data_cachename">indexDataBooksCache</property>
> <property name="default.locking_cachename">indexLockingBooksCache</property>
> <property name="default.directory_provider">infinispan</property>
> <property name="default.indexmanager">org.infinispan.query.indexmanager.InfinispanIndexManager</property>
> <property name="lucene_version">LUCENE_CURRENT</property>
> </indexing>
> </replicated-cache>
> {code}
> The booksCache starts in non-indexed mode, even if it explicitly configure the indexing
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6104) Cache.Purge issues
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-6104?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant commented on ISPN-6104:
---------------------------------------
Point 1 is now covered by a "clear" action.
As for point 2, I disagree with the ERD
> Cache.Purge issues
> ------------------
>
> Key: ISPN-6104
> URL: https://issues.jboss.org/browse/ISPN-6104
> Project: Infinispan
> Issue Type: Bug
> Components: Console
> Affects Versions: 8.1.0.Final
> Reporter: Martin Gencur
> Assignee: Vladimir Blagojevic
> Priority: Optional
>
> Currently, there are the following issues with the "Purge cache data" button:
> 1) The Purge operation only copies entries to the cache store, it does not remove the from the cache itself. So the cache remains full. Checked with cache.withFlags(Flag.SKIP_CACHE_LOAD).get() after I performed the Purge operation and still got the entries. The JMX stats also display entries in the cache.
> 2) The button is available even though the cache is attached to the remote endpoint and hence available to clients. It should only be available after the cache is detached from the endpoint.
> 3) The confirmation dialog for the operation always says "Purging cache xyCache will passivate all its cache entries." even though there's no cache store defined for the cache. This might lead users to expectations that their data will be stored somewhere. But if there's no cache store, the data will be lost. In this case, it would be better to show a warning that their data will be lost after performing the operation.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6363) NullPointerException while executing a script on non secured cache located in secured container
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6363?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6363:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Integrated in master. Thanks [~vjuranek]!
> NullPointerException while executing a script on non secured cache located in secured container
> -----------------------------------------------------------------------------------------------
>
> Key: ISPN-6363
> URL: https://issues.jboss.org/browse/ISPN-6363
> Project: Infinispan
> Issue Type: Bug
> Components: Tasks
> Reporter: Anna Manukyan
> Assignee: Vojtech Juranek
> Fix For: 9.0.0.Alpha2
>
>
> NullPointerException is thrown while executing a script on non secured cache which is located in secured container.
> The exception is:
> {code}
> java.security.PrivilegedActionException: java.lang.NullPointerException
> at org.infinispan.security.Security.doAs(Security.java:145)
> at org.infinispan.scripting.SecureScriptingTest.test(SecureScriptingTest.java:142)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> 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:348)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
> at org.testng.SuiteRunner.run(SuiteRunner.java:254)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> at org.testng.TestNG.run(TestNG.java:1057)
> at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
> at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:122)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> Caused by: java.lang.NullPointerException
> at org.infinispan.scripting.impl.ScriptingManagerImpl.runScript(ScriptingManagerImpl.java:152)
> at org.infinispan.scripting.SecureScriptingTest$8.run(SecureScriptingTest.java:145)
> at org.infinispan.scripting.SecureScriptingTest$8.run(SecureScriptingTest.java:142)
> at org.infinispan.security.Security.doAs(Security.java:143)
> ... 29 more
> {code}
> The test is:
> {code}
> public void test() throws ExecutionException, InterruptedException, PrivilegedActionException {
> Security.doAs(ADMIN, new PrivilegedAction<Void>() {
> @Override
> public Void run() {
> cacheManager.defineConfiguration("nonSecuredCache", TestCacheManagerFactory.getDefaultCacheConfiguration(true).build());
> return null;
> }
> });
> cache("nonSecuredCache").put("a", "value");
> assertEquals("value", cacheManager.getCache("nonSecuredCache").get("a"));
> String result = Security.doAs(RUNNER, new PrivilegedExceptionAction<String>() {
> @Override
> public String run() throws Exception {
> return (String) scriptingManager.runScript("test.js", new TaskContext().addParameter("a", "a").cache(cache("nonSecuredCache"))).get();
> }
> });
> assertEquals("a", result);
> assertEquals("a", cacheManager.getCache("nonSecuredCache").get("a"));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6363) NullPointerException while executing a script on non secured cache located in secured container
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6363?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6363:
--------------------------------
Fix Version/s: 9.0.0.Alpha2
> NullPointerException while executing a script on non secured cache located in secured container
> -----------------------------------------------------------------------------------------------
>
> Key: ISPN-6363
> URL: https://issues.jboss.org/browse/ISPN-6363
> Project: Infinispan
> Issue Type: Bug
> Components: Tasks
> Reporter: Anna Manukyan
> Assignee: Vojtech Juranek
> Fix For: 9.0.0.Alpha2
>
>
> NullPointerException is thrown while executing a script on non secured cache which is located in secured container.
> The exception is:
> {code}
> java.security.PrivilegedActionException: java.lang.NullPointerException
> at org.infinispan.security.Security.doAs(Security.java:145)
> at org.infinispan.scripting.SecureScriptingTest.test(SecureScriptingTest.java:142)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> 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:348)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
> at org.testng.SuiteRunner.run(SuiteRunner.java:254)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> at org.testng.TestNG.run(TestNG.java:1057)
> at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
> at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:122)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> Caused by: java.lang.NullPointerException
> at org.infinispan.scripting.impl.ScriptingManagerImpl.runScript(ScriptingManagerImpl.java:152)
> at org.infinispan.scripting.SecureScriptingTest$8.run(SecureScriptingTest.java:145)
> at org.infinispan.scripting.SecureScriptingTest$8.run(SecureScriptingTest.java:142)
> at org.infinispan.security.Security.doAs(Security.java:143)
> ... 29 more
> {code}
> The test is:
> {code}
> public void test() throws ExecutionException, InterruptedException, PrivilegedActionException {
> Security.doAs(ADMIN, new PrivilegedAction<Void>() {
> @Override
> public Void run() {
> cacheManager.defineConfiguration("nonSecuredCache", TestCacheManagerFactory.getDefaultCacheConfiguration(true).build());
> return null;
> }
> });
> cache("nonSecuredCache").put("a", "value");
> assertEquals("value", cacheManager.getCache("nonSecuredCache").get("a"));
> String result = Security.doAs(RUNNER, new PrivilegedExceptionAction<String>() {
> @Override
> public String run() throws Exception {
> return (String) scriptingManager.runScript("test.js", new TaskContext().addParameter("a", "a").cache(cache("nonSecuredCache"))).get();
> }
> });
> assertEquals("a", result);
> assertEquals("a", cacheManager.getCache("nonSecuredCache").get("a"));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPRK-22) InfinispanRDD is not fault tolerant
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPRK-22?page=com.atlassian.jira.plugin.s... ]
Gustavo Fernandes updated ISPRK-22:
-----------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan-spark/pull/27
> InfinispanRDD is not fault tolerant
> -----------------------------------
>
> Key: ISPRK-22
> URL: https://issues.jboss.org/browse/ISPRK-22
> Project: Infinispan Spark
> Issue Type: Bug
> Components: RDD
> Affects Versions: 0.3
> Reporter: Vojtech Juranek
> Assignee: Gustavo Fernandes
> Fix For: 0.4
>
>
> When primary ISPN server fails during processing InfinispanRDD, Spark is not able to overcome this failure.
> This is caused by re-creating {{RemoteCachManager}} with pre-configured ISPN server address (for read [here|https://github.com/infinispan/infinispan-spark/blob/master/src/main/...], for writes [here|https://github.com/infinispan/infinispan-spark/blob/master/src/main/...]), so when this server fails during RDD processing and Spark calls some function, which under the hood creates {{RemoteCacheManager}}, it will fail with connection refused exception.
> [Here|https://github.com/vjuranek/infinispan-spark/commit/fa56b5f072ce24e0...] are some basic tests and example of exception thrown by HR client:
> {noformat}
> org.infinispan.client.hotrod.exceptions.TransportException:: Could not fetch transport
> at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.borrowTransportFromPool(TcpTransportFactory.java:395)
> at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.getTransport(TcpTransportFactory.java:241)
> at org.infinispan.client.hotrod.impl.operations.FaultTolerantPingOperation.getTransport(FaultTolerantPingOperation.java:26)
> at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:53)
> at org.infinispan.client.hotrod.impl.RemoteCacheImpl.ping(RemoteCacheImpl.java:490)
> at org.infinispan.client.hotrod.impl.RemoteCacheImpl.resolveCompatibility(RemoteCacheImpl.java:551)
> at org.infinispan.client.hotrod.RemoteCacheManager.createRemoteCache(RemoteCacheManager.java:341)
> at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:222)
> at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:217)
> at org.infinispan.spark.rdd.InfinispanRDD$$anonfun$1.apply(InfinispanRDD.scala:52)
> at org.infinispan.spark.rdd.InfinispanRDD$$anonfun$1.apply(InfinispanRDD.scala:52)
> at scala.Option.map(Option.scala:146)
> at org.infinispan.spark.rdd.InfinispanRDD.compute(InfinispanRDD.scala:52)
> at org.infinispan.spark.rdd.InfinispanRDD.compute(InfinispanRDD.scala:66)
> at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306)
> at org.apache.spark.rdd.RDD.iterator(RDD.scala:270)
> at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
> at org.apache.spark.scheduler.Task.run(Task.scala:89)
> at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:213)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.infinispan.client.hotrod.exceptions.TransportException:: Could not connect to server: /127.0.0.1:11222
> at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.<init>(TcpTransport.java:78)
> at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.makeObject(TransportObjectFactory.java:35)
> at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.makeObject(TransportObjectFactory.java:16)
> at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
> at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.borrowTransportFromPool(TcpTransportFactory.java:390)
> ... 21 more
> Caused by: java.net.ConnectException: Connection refused
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
> at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:111)
> at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.<init>(TcpTransport.java:68)
> ... 25 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPRK-24) Emit Failover events on the InfinispanInputDStream
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPRK-24:
--------------------------------------
Summary: Emit Failover events on the InfinispanInputDStream
Key: ISPRK-24
URL: https://issues.jboss.org/browse/ISPRK-24
Project: Infinispan Spark
Issue Type: Feature Request
Reporter: Gustavo Fernandes
Failover events are currently not generated in the stream. Those events happen when the underlying remote listener is registered on another server due to failover.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months