[JBoss JIRA] (ISPN-3953) JPACacheStore should not load all entities in memory
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-3953?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-3953:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 7.0.0.Alpha3
Resolution: Done
> JPACacheStore should not load all entities in memory
> ----------------------------------------------------
>
> Key: ISPN-3953
> URL: https://issues.jboss.org/browse/ISPN-3953
> Project: Infinispan
> Issue Type: Enhancement
> Components: Loaders and Stores
> Reporter: Emmanuel Bernard
> Assignee: Radim Vansa
> Labels: 630
> Fix For: 7.0.0.Alpha3
>
>
> Today several methods use getResultList() and load either all keys or all entities for a given entity type in- memory at the same time.
> This will likely blow up for big tables.
> There are two solutions:
> ## Use Hibernate's specific features
> Hibernate ORM has a session.scroll() method that offers a FORWARD_ONLY scrollable result set. You can then load data and regularly (every 100?) clear the session before hitting the next result. This will diminish greatly the memory pressure.
> ## Use a window model
> get the number of entities in the table select count(*)
> Then use setFirstResult / setMaxResults to navigate the data with a sliding window and clear the session every time you move the window.
> This won't be as efficient as Hibernate ORM's specific approach but will do the work except on database that don't support the ability to start the results at the nth element. Look up Hibernate dialects for more info.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (ISPN-3973) Random failures in the Rest cache store tests caused by RESTEASY-762
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-3973?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-3973:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/2480
> Random failures in the Rest cache store tests caused by RESTEASY-762
> --------------------------------------------------------------------
>
> Key: ISPN-3973
> URL: https://issues.jboss.org/browse/ISPN-3973
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Server
> Affects Versions: 6.0.1.Final
> Reporter: Dan Berindei
> Assignee: Galder Zamarreño
> Fix For: 7.0.0.Alpha3, 7.0.0.Final
>
>
> Getting a ConcurrentModificationException while starting the server, just like RESTEASY-762:
> {noformat}
> 07:57:53,182 ERROR [org.mortbay.log] (testng-RestStoreTest) Error starting handlers
> java.util.ConcurrentModificationException
> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> at java.util.AbstractList$Itr.next(AbstractList.java:343)
> at org.jboss.resteasy.core.interception.InterceptorRegistry.bindForList(InterceptorRegistry.java:204)
> at org.jboss.resteasy.core.interception.InterceptorRegistry.bind(InterceptorRegistry.java:197)
> at org.jboss.resteasy.core.ResourceMethod.<init>(ResourceMethod.java:105)
> at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:233)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:125)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:107)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:84)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:73)
> at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:383)
> at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)
> at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)
> at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
> at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.infinispan.rest.EmbeddedRestServer.start(EmbeddedRestServer.java:53)
> at org.infinispan.rest.RestTestingUtil.startRestServer(RestTestingUtil.java:24)
> at org.infinispan.rest.RestTestingUtil.startRestServer(RestTestingUtil.java:18)
> at org.infinispan.rest.RestTestingUtil.startRestServer(RestTestingUtil.java:14)
> at org.infinispan.persistence.rest.RestStoreTest.createStore(RestStoreTest.java:44)
> at org.infinispan.persistence.BaseStoreTest.setUp(BaseStoreTest.java:70)
> {noformat}
> http://ci.infinispan.org/viewLog.html?buildId=5930&tab=buildResultsDiv&bu...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (ISPN-4129) Add Query, CDI, JCache, LevelDB and REST to the AS modules
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-4129?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-4129:
-----------------------------------------------
Martin Gencur <mgencur(a)redhat.com> changed the Status of [bug 1076093|https://bugzilla.redhat.com/show_bug.cgi?id=1076093] from ON_QA to VERIFIED
> 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: Tristan Tarrant
> Fix For: 7.0.0.Alpha3, 7.0.0.Final
>
>
> Query, CDI, JCache, LevelDB and REST modules need to be added to the AS modules we ship
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (ISPN-3973) Random failures in the Rest cache store tests caused by RESTEASY-762
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-3973?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-3973:
-----------------------------------
Fix Version/s: 7.0.0.Alpha3
> Random failures in the Rest cache store tests caused by RESTEASY-762
> --------------------------------------------------------------------
>
> Key: ISPN-3973
> URL: https://issues.jboss.org/browse/ISPN-3973
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Server
> Affects Versions: 6.0.1.Final
> Reporter: Dan Berindei
> Assignee: Galder Zamarreño
> Fix For: 7.0.0.Alpha3, 7.0.0.Final
>
>
> Getting a ConcurrentModificationException while starting the server, just like RESTEASY-762:
> {noformat}
> 07:57:53,182 ERROR [org.mortbay.log] (testng-RestStoreTest) Error starting handlers
> java.util.ConcurrentModificationException
> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> at java.util.AbstractList$Itr.next(AbstractList.java:343)
> at org.jboss.resteasy.core.interception.InterceptorRegistry.bindForList(InterceptorRegistry.java:204)
> at org.jboss.resteasy.core.interception.InterceptorRegistry.bind(InterceptorRegistry.java:197)
> at org.jboss.resteasy.core.ResourceMethod.<init>(ResourceMethod.java:105)
> at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:233)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:125)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:107)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:84)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:73)
> at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:383)
> at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)
> at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)
> at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
> at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.infinispan.rest.EmbeddedRestServer.start(EmbeddedRestServer.java:53)
> at org.infinispan.rest.RestTestingUtil.startRestServer(RestTestingUtil.java:24)
> at org.infinispan.rest.RestTestingUtil.startRestServer(RestTestingUtil.java:18)
> at org.infinispan.rest.RestTestingUtil.startRestServer(RestTestingUtil.java:14)
> at org.infinispan.persistence.rest.RestStoreTest.createStore(RestStoreTest.java:44)
> at org.infinispan.persistence.BaseStoreTest.setUp(BaseStoreTest.java:70)
> {noformat}
> http://ci.infinispan.org/viewLog.html?buildId=5930&tab=buildResultsDiv&bu...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months