[JBoss JIRA] (ISPN-8535) Rest API redesign
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-8535?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes commented on ISPN-8535:
-----------------------------------------
[~NadirX] [~altanis] Some of you mentioned compatibility concerns about doing it before version 10, but we could use API versioning, while keep the current endpoints intact.
Example:
* Create an entry: POST /rest/v2/caches/myCache/1
* Create a counter: POST /rest/v2/counters
* Create an entry "old fashioned way": POST /rest/default/1
> Rest API redesign
> -----------------
>
> Key: ISPN-8535
> URL: https://issues.jboss.org/browse/ISPN-8535
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.2.0.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 10.0.0.Final
>
>
> Infinispan REST API deals with only one resource, (the cache) and maps all operations on the cache using HTTP verbs and request parameters. The API assumes the URI is related to the cache making it hard to add new kinds of resources without causing ambiguous references.
> Since we now have other types of entities, such as counters, scripts, templates, etc, and each one of them can involve different operations, we should make the API more "Restful" by using more than one resource and collections of resources, plus HTTP verbs and operations on them. Examples:
> * Create a cache: POST /rest/caches
> * Delete a cache: DELETE /rest/caches/myCache
> * Create a template: POST /rest/templates
> * Delete a template: DELETE /rest/templates/myTemplate
> * Create an entry: POST /rest/caches/myCache/1
> * Create a counter: POST /rest/counters
> * Get a counter value: GET /rest/counters/mycounter
> * Increment a counter: GET /rest/counters/mycounter?action=increment
> * Search a cache: GET /rest/caches/myCache?action=search
> * Create a script: POST /rest/scripts/
> * Get a script source: GET /rest/scritps/myScript
> * Execute a script: GET /rest/scripts/myScript?action=execute¶m1=foo
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (ISPN-8729) Use async operations in Hot Rod server
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-8729?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-8729:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.2.0.CR3
Resolution: Done
> Use async operations in Hot Rod server
> --------------------------------------
>
> Key: ISPN-8729
> URL: https://issues.jboss.org/browse/ISPN-8729
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.2.0.CR1
> Reporter: Radim Vansa
> Assignee: Radim Vansa
> Fix For: 9.2.0.CR3
>
>
> The server should avoid context switches by starting commands directly from event loop instead of handing them off to another executor. This requires ISPN-8336 to make the async chain completely non-blocking.
> Along with the overhaul we should structure cache/counter/multimap operations nicely.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (ISPN-8478) Reduce build memory usage
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-8478?page=com.atlassian.jira.plugin.... ]
Dan Berindei edited comment on ISPN-8478 at 2/21/18 2:09 AM:
-------------------------------------------------------------
I modified {{AbstractInfinispanTest.testClassFinished()}} to set cache-like fields to {{null}} in all the tests, and that greatly reduced the amount of memory the core test suite needs.
was (Author: dan.berindei):
I modified `AbstractInfinispanTest.destroy()` to set cache-like fields to {{null}} in all the tests, and that greatly reduced the amount of memory the core test suite needs.
> Reduce build memory usage
> -------------------------
>
> Key: ISPN-8478
> URL: https://issues.jboss.org/browse/ISPN-8478
> Project: Infinispan
> Issue Type: Task
> Components: Build
> Affects Versions: 9.2.0.Alpha2
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 9.2.0.CR3
>
>
> The CI Maven process runs without a max heap parameter, so it can use up to 1/4 of agent RAM. It should run with a specific limit and so should all the other JVMs it spawns: the surefire fork, Karaf containers, WildFly servers etc.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (ISPN-8850) NPE in ConsistentHashV2IntegrationTest.cleanUp
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-8850?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-8850:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/5777
> NPE in ConsistentHashV2IntegrationTest.cleanUp
> ----------------------------------------------
>
> Key: ISPN-8850
> URL: https://issues.jboss.org/browse/ISPN-8850
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.2.0.CR1
> Reporter: Adrian Nistor
> Assignee: Dan Berindei
> Attachments: infinispan-infinispan-client-hotrod.log
>
>
> {code}
> ERROR] Tests run: 3262, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 293.915 s <<< FAILURE! - in TestSuite
> [ERROR] cleanUp(org.infinispan.client.hotrod.ConsistentHashV2IntegrationTest) Time elapsed: 0.062 s <<< FAILURE!
> java.lang.NullPointerException
> at org.infinispan.client.hotrod.ConsistentHashV2IntegrationTest.cleanUp(ConsistentHashV2IntegrationTest.java:102)
> 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:498)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
> at org.testng.TestRunner.afterRun(TestRunner.java:1023)
> at org.testng.TestRunner.run(TestRunner.java:628)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:39)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:393)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Failures:
> [ERROR] ConsistentHashV2IntegrationTest.cleanUp:102 NullPointer
> [INFO]
> [ERROR] Tests run: 3262, Failures: 1, Errors: 0, Skipped: 0
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (ISPN-8478) Reduce build memory usage
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-8478?page=com.atlassian.jira.plugin.... ]
Dan Berindei commented on ISPN-8478:
------------------------------------
I modified `AbstractInfinispanTest.destroy()` to set cache-like fields to {{null}} in all the tests, and that greatly reduced the amount of memory the core test suite needs.
> Reduce build memory usage
> -------------------------
>
> Key: ISPN-8478
> URL: https://issues.jboss.org/browse/ISPN-8478
> Project: Infinispan
> Issue Type: Task
> Components: Build
> Affects Versions: 9.2.0.Alpha2
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 9.2.0.CR3
>
>
> The CI Maven process runs without a max heap parameter, so it can use up to 1/4 of agent RAM. It should run with a specific limit and so should all the other JVMs it spawns: the surefire fork, Karaf containers, WildFly servers etc.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (ISPN-8850) NPE in ConsistentHashV2IntegrationTest.cleanUp
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-8850?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-8850:
-------------------------------
Status: Open (was: New)
> NPE in ConsistentHashV2IntegrationTest.cleanUp
> ----------------------------------------------
>
> Key: ISPN-8850
> URL: https://issues.jboss.org/browse/ISPN-8850
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.2.0.CR1
> Reporter: Adrian Nistor
> Assignee: Dan Berindei
> Attachments: infinispan-infinispan-client-hotrod.log
>
>
> {code}
> ERROR] Tests run: 3262, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 293.915 s <<< FAILURE! - in TestSuite
> [ERROR] cleanUp(org.infinispan.client.hotrod.ConsistentHashV2IntegrationTest) Time elapsed: 0.062 s <<< FAILURE!
> java.lang.NullPointerException
> at org.infinispan.client.hotrod.ConsistentHashV2IntegrationTest.cleanUp(ConsistentHashV2IntegrationTest.java:102)
> 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:498)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
> at org.testng.TestRunner.afterRun(TestRunner.java:1023)
> at org.testng.TestRunner.run(TestRunner.java:628)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:39)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:393)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Failures:
> [ERROR] ConsistentHashV2IntegrationTest.cleanUp:102 NullPointer
> [INFO]
> [ERROR] Tests run: 3262, Failures: 1, Errors: 0, Skipped: 0
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months