[JBoss JIRA] (ISPN-6411) Marshalled value is returned while executing javascript and returning value from cache over HotRod client
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-6411?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-6411:
-----------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/4246
> Marshalled value is returned while executing javascript and returning value from cache over HotRod client
> ---------------------------------------------------------------------------------------------------------
>
> Key: ISPN-6411
> URL: https://issues.jboss.org/browse/ISPN-6411
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 8.2.1.Final
> Reporter: Anna Manukyan
> Assignee: Galder Zamarreño
> Fix For: 9.0.0.Alpha2, 9.0.0.Final
>
>
> When trying to execute a script over hotrod-client, which puts some data to the cache and returns it, the test fails with the following exception:
> {code}
> java.lang.ClassCastException: [B cannot be cast to java.lang.String
> at org.infinispan.client.hotrod.ExecTest.testRemoteScriptRemoteExecution(ExecTest.java:122)
> ...
> {code}
> The test code and javascript code are:
> {code}
> @Test
> public void testRemoteScriptRemoteExecution() throws IOException {
> String cacheName = "testRemoteScriptRemoteExecution_REPL_SYNC";
> ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
> builder.dataContainer().keyEquivalence(new AnyServerEquivalence()).valueEquivalence(new AnyServerEquivalence()).compatibility().enable().marshaller(new GenericJBossMarshaller());
> defineInAll(cacheName, builder);
> try (InputStream is = this.getClass().getResourceAsStream("/test1.js")) {
> String script = TestingUtil.loadFileAsString(is);
> clients.get(0).getCache(SCRIPT_CACHE).put("testRemoteScriptRemoteExecution.js", script);
> }
> Map<String, String> params = new HashMap<>();
> String result = clients.get(0).getCache(cacheName).execute("testRemoteScriptRemoteExecution.js", params); //<- The exception is thrown here while casting to String
> assertEquals("hoptimus prime", result);
> assertEquals("hoptimus prime", clients.get(0).getCache(cacheName).get("a"));
> }
> //test1.js
> // mode=local,language=javascript
> cache.put("a", "hoptimus prime");
> cache.get("a");
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6411) Marshalled value is returned while executing javascript and returning value from cache over HotRod client
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-6411?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-6411:
-----------------------------------
Affects Version/s: 8.2.1.Final
> Marshalled value is returned while executing javascript and returning value from cache over HotRod client
> ---------------------------------------------------------------------------------------------------------
>
> Key: ISPN-6411
> URL: https://issues.jboss.org/browse/ISPN-6411
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 8.2.1.Final
> Reporter: Anna Manukyan
> Assignee: Galder Zamarreño
> Fix For: 9.0.0.Alpha2, 9.0.0.Final
>
>
> When trying to execute a script over hotrod-client, which puts some data to the cache and returns it, the test fails with the following exception:
> {code}
> java.lang.ClassCastException: [B cannot be cast to java.lang.String
> at org.infinispan.client.hotrod.ExecTest.testRemoteScriptRemoteExecution(ExecTest.java:122)
> ...
> {code}
> The test code and javascript code are:
> {code}
> @Test
> public void testRemoteScriptRemoteExecution() throws IOException {
> String cacheName = "testRemoteScriptRemoteExecution_REPL_SYNC";
> ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
> builder.dataContainer().keyEquivalence(new AnyServerEquivalence()).valueEquivalence(new AnyServerEquivalence()).compatibility().enable().marshaller(new GenericJBossMarshaller());
> defineInAll(cacheName, builder);
> try (InputStream is = this.getClass().getResourceAsStream("/test1.js")) {
> String script = TestingUtil.loadFileAsString(is);
> clients.get(0).getCache(SCRIPT_CACHE).put("testRemoteScriptRemoteExecution.js", script);
> }
> Map<String, String> params = new HashMap<>();
> String result = clients.get(0).getCache(cacheName).execute("testRemoteScriptRemoteExecution.js", params); //<- The exception is thrown here while casting to String
> assertEquals("hoptimus prime", result);
> assertEquals("hoptimus prime", clients.get(0).getCache(cacheName).get("a"));
> }
> //test1.js
> // mode=local,language=javascript
> cache.put("a", "hoptimus prime");
> cache.get("a");
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6411) Marshalled value is returned while executing javascript and returning value from cache over HotRod client
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-6411?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-6411:
-----------------------------------
Fix Version/s: 9.0.0.Alpha2
9.0.0.Final
> Marshalled value is returned while executing javascript and returning value from cache over HotRod client
> ---------------------------------------------------------------------------------------------------------
>
> Key: ISPN-6411
> URL: https://issues.jboss.org/browse/ISPN-6411
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 8.2.1.Final
> Reporter: Anna Manukyan
> Assignee: Galder Zamarreño
> Fix For: 9.0.0.Alpha2, 9.0.0.Final
>
>
> When trying to execute a script over hotrod-client, which puts some data to the cache and returns it, the test fails with the following exception:
> {code}
> java.lang.ClassCastException: [B cannot be cast to java.lang.String
> at org.infinispan.client.hotrod.ExecTest.testRemoteScriptRemoteExecution(ExecTest.java:122)
> ...
> {code}
> The test code and javascript code are:
> {code}
> @Test
> public void testRemoteScriptRemoteExecution() throws IOException {
> String cacheName = "testRemoteScriptRemoteExecution_REPL_SYNC";
> ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
> builder.dataContainer().keyEquivalence(new AnyServerEquivalence()).valueEquivalence(new AnyServerEquivalence()).compatibility().enable().marshaller(new GenericJBossMarshaller());
> defineInAll(cacheName, builder);
> try (InputStream is = this.getClass().getResourceAsStream("/test1.js")) {
> String script = TestingUtil.loadFileAsString(is);
> clients.get(0).getCache(SCRIPT_CACHE).put("testRemoteScriptRemoteExecution.js", script);
> }
> Map<String, String> params = new HashMap<>();
> String result = clients.get(0).getCache(cacheName).execute("testRemoteScriptRemoteExecution.js", params); //<- The exception is thrown here while casting to String
> assertEquals("hoptimus prime", result);
> assertEquals("hoptimus prime", clients.get(0).getCache(cacheName).get("a"));
> }
> //test1.js
> // mode=local,language=javascript
> cache.put("a", "hoptimus prime");
> cache.get("a");
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6509) Configuration of write-behind cachestore threading should refer to executors by name
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-6509?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant reassigned ISPN-6509:
-------------------------------------
Assignee: Ryan Emerson (was: Tristan Tarrant)
> Configuration of write-behind cachestore threading should refer to executors by name
> ------------------------------------------------------------------------------------
>
> Key: ISPN-6509
> URL: https://issues.jboss.org/browse/ISPN-6509
> Project: Infinispan
> Issue Type: Enhancement
> Components: Configuration, Documentation-Core, Loaders and Stores
> Reporter: Sanne Grinovero
> Assignee: Ryan Emerson
>
> The configuration for the {{write-behind}} settings are documented as having for example the following format:
> {code:xml}<write-behind flush-lock-timeout="12321" modification-queue-size="123" shutdown-timeout="321" thread-pool-size="23" />{code}
> I believe this should rather hallow to refer an executor by name, so that executors can be defined in the executors sections and allow (and encourage) people to reuse the executors across multiple cachestores if that makes sense.
> We probably could also validate that it's not allowed to pick some specific executors, for example I believe some choices could lead to deadlocks.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (ISPN-6411) Marshalled value is returned while executing javascript and returning value from cache over HotRod client
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-6411?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño reassigned ISPN-6411:
--------------------------------------
Assignee: Galder Zamarreño (was: Tristan Tarrant)
> Marshalled value is returned while executing javascript and returning value from cache over HotRod client
> ---------------------------------------------------------------------------------------------------------
>
> Key: ISPN-6411
> URL: https://issues.jboss.org/browse/ISPN-6411
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Reporter: Anna Manukyan
> Assignee: Galder Zamarreño
>
> When trying to execute a script over hotrod-client, which puts some data to the cache and returns it, the test fails with the following exception:
> {code}
> java.lang.ClassCastException: [B cannot be cast to java.lang.String
> at org.infinispan.client.hotrod.ExecTest.testRemoteScriptRemoteExecution(ExecTest.java:122)
> ...
> {code}
> The test code and javascript code are:
> {code}
> @Test
> public void testRemoteScriptRemoteExecution() throws IOException {
> String cacheName = "testRemoteScriptRemoteExecution_REPL_SYNC";
> ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
> builder.dataContainer().keyEquivalence(new AnyServerEquivalence()).valueEquivalence(new AnyServerEquivalence()).compatibility().enable().marshaller(new GenericJBossMarshaller());
> defineInAll(cacheName, builder);
> try (InputStream is = this.getClass().getResourceAsStream("/test1.js")) {
> String script = TestingUtil.loadFileAsString(is);
> clients.get(0).getCache(SCRIPT_CACHE).put("testRemoteScriptRemoteExecution.js", script);
> }
> Map<String, String> params = new HashMap<>();
> String result = clients.get(0).getCache(cacheName).execute("testRemoteScriptRemoteExecution.js", params); //<- The exception is thrown here while casting to String
> assertEquals("hoptimus prime", result);
> assertEquals("hoptimus prime", clients.get(0).getCache(cacheName).get("a"));
> }
> //test1.js
> // mode=local,language=javascript
> cache.put("a", "hoptimus prime");
> cache.get("a");
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (ISPN-6411) Marshalled value is returned while executing javascript and returning value from cache over HotRod client
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-6411?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-6411:
-----------------------------------
Status: Open (was: New)
> Marshalled value is returned while executing javascript and returning value from cache over HotRod client
> ---------------------------------------------------------------------------------------------------------
>
> Key: ISPN-6411
> URL: https://issues.jboss.org/browse/ISPN-6411
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Reporter: Anna Manukyan
> Assignee: Galder Zamarreño
>
> When trying to execute a script over hotrod-client, which puts some data to the cache and returns it, the test fails with the following exception:
> {code}
> java.lang.ClassCastException: [B cannot be cast to java.lang.String
> at org.infinispan.client.hotrod.ExecTest.testRemoteScriptRemoteExecution(ExecTest.java:122)
> ...
> {code}
> The test code and javascript code are:
> {code}
> @Test
> public void testRemoteScriptRemoteExecution() throws IOException {
> String cacheName = "testRemoteScriptRemoteExecution_REPL_SYNC";
> ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
> builder.dataContainer().keyEquivalence(new AnyServerEquivalence()).valueEquivalence(new AnyServerEquivalence()).compatibility().enable().marshaller(new GenericJBossMarshaller());
> defineInAll(cacheName, builder);
> try (InputStream is = this.getClass().getResourceAsStream("/test1.js")) {
> String script = TestingUtil.loadFileAsString(is);
> clients.get(0).getCache(SCRIPT_CACHE).put("testRemoteScriptRemoteExecution.js", script);
> }
> Map<String, String> params = new HashMap<>();
> String result = clients.get(0).getCache(cacheName).execute("testRemoteScriptRemoteExecution.js", params); //<- The exception is thrown here while casting to String
> assertEquals("hoptimus prime", result);
> assertEquals("hoptimus prime", clients.get(0).getCache(cacheName).get("a"));
> }
> //test1.js
> // mode=local,language=javascript
> cache.put("a", "hoptimus prime");
> cache.get("a");
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (ISPN-6411) Marshalled value is returned while executing javascript and returning value from cache over HotRod client
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-6411?page=com.atlassian.jira.plugin.... ]
Work on ISPN-6411 started by Galder Zamarreño.
----------------------------------------------
> Marshalled value is returned while executing javascript and returning value from cache over HotRod client
> ---------------------------------------------------------------------------------------------------------
>
> Key: ISPN-6411
> URL: https://issues.jboss.org/browse/ISPN-6411
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Reporter: Anna Manukyan
> Assignee: Galder Zamarreño
>
> When trying to execute a script over hotrod-client, which puts some data to the cache and returns it, the test fails with the following exception:
> {code}
> java.lang.ClassCastException: [B cannot be cast to java.lang.String
> at org.infinispan.client.hotrod.ExecTest.testRemoteScriptRemoteExecution(ExecTest.java:122)
> ...
> {code}
> The test code and javascript code are:
> {code}
> @Test
> public void testRemoteScriptRemoteExecution() throws IOException {
> String cacheName = "testRemoteScriptRemoteExecution_REPL_SYNC";
> ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
> builder.dataContainer().keyEquivalence(new AnyServerEquivalence()).valueEquivalence(new AnyServerEquivalence()).compatibility().enable().marshaller(new GenericJBossMarshaller());
> defineInAll(cacheName, builder);
> try (InputStream is = this.getClass().getResourceAsStream("/test1.js")) {
> String script = TestingUtil.loadFileAsString(is);
> clients.get(0).getCache(SCRIPT_CACHE).put("testRemoteScriptRemoteExecution.js", script);
> }
> Map<String, String> params = new HashMap<>();
> String result = clients.get(0).getCache(cacheName).execute("testRemoteScriptRemoteExecution.js", params); //<- The exception is thrown here while casting to String
> assertEquals("hoptimus prime", result);
> assertEquals("hoptimus prime", clients.get(0).getCache(cacheName).get("a"));
> }
> //test1.js
> // mode=local,language=javascript
> cache.put("a", "hoptimus prime");
> cache.get("a");
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (ISPN-6504) Try to use the index even if the query matches all entries
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6504?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6504:
--------------------------------
Description:
A DSL query with no filter clauses will match all entries. In this case we currently run a non-indexed query even if the cache is indexed. This is ok for queries that do not use sorting or pprojections. In that case we do not get any benefit from involving the index.
Performance can be improved by using the index if the query has sorting or projections so this should be treated as a special case.
was:
A DSL query with no filter clauses will match all entries. In this case we currently run a non-indexed query even if the cache is indexed. This is ok for queries that do not use sorting or pprojections. In that case we do not get any benefit from involving the index.
Performance could be improved a bit by using the index if the query has sorting or projections so this should be treated as a special case.
> Try to use the index even if the query matches all entries
> ----------------------------------------------------------
>
> Key: ISPN-6504
> URL: https://issues.jboss.org/browse/ISPN-6504
> Project: Infinispan
> Issue Type: Enhancement
> Components: Embedded Querying, Remote Querying
> Affects Versions: 8.2.1.Final, 9.0.0.Alpha1
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 9.0.0.Alpha2, 8.2.2.Final, 9.0.0.Final
>
>
> A DSL query with no filter clauses will match all entries. In this case we currently run a non-indexed query even if the cache is indexed. This is ok for queries that do not use sorting or pprojections. In that case we do not get any benefit from involving the index.
> Performance can be improved by using the index if the query has sorting or projections so this should be treated as a special case.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (ISPN-6510) The various configurable Executors are not documented
by Sanne Grinovero (JIRA)
Sanne Grinovero created ISPN-6510:
-------------------------------------
Summary: The various configurable Executors are not documented
Key: ISPN-6510
URL: https://issues.jboss.org/browse/ISPN-6510
Project: Infinispan
Issue Type: Enhancement
Components: Documentation-Core
Reporter: Sanne Grinovero
The core module defines several specific names of Executors, and configuration options to tune these.
It turns out that tuning these {{Executors}} correctly is of paramount importance to get good performance out of Infinispan, but the names and purposes of each of these is not documented.
I need a table to list:
* the name of each executor
* a short description of its purpose
We can then follow up on this table with some brief recommendations on when to turn up/down each of them and which other attributes of these executors might be sensible to change.
Ideally I'd like an example using the XML configuration format listing them all - using defaults - so that one can paste it and make the changes as appropriate.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months