[JBoss JIRA] (ISPN-7045) Fix interrupt handling during CacheStore.purge(...)
by Paul Ferraro (JIRA)
Paul Ferraro created ISPN-7045:
----------------------------------
Summary: Fix interrupt handling during CacheStore.purge(...)
Key: ISPN-7045
URL: https://issues.jboss.org/browse/ISPN-7045
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 8.2.4.Final
Reporter: Paul Ferraro
During cache shutdown, any persistence threads are interrupted. Some cache stores, e.g. JdbcBinaryStore, inappropriately rethrow InterruptedExceptions as PersistenceExceptions, which then get logged as ERROR by the ExpirationManager.
Other cache stores, e.g. SingleFileStore, don't handle interrupts at all!
I haven't looked at every cache store implementation, but the problem seems widespread.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years
[JBoss JIRA] (ISPN-7044) Operations on the backup site should match the transport between sites
by Alan Field (JIRA)
Alan Field created ISPN-7044:
--------------------------------
Summary: Operations on the backup site should match the transport between sites
Key: ISPN-7044
URL: https://issues.jboss.org/browse/ISPN-7044
Project: Infinispan
Issue Type: Enhancement
Components: Cross-Site Replication
Reporter: Alan Field
The idea for this JIRA came from a meeting between myself, [~mgencur], [~belaban], [~pruivo], and [~NadirX]. The thought is that the type of operation used in the backup site should match the transport between sites. So when the transport between sites is asynchronous, then the operations applied on the backup site should be asynchronous and vice-versa. This should improve the throughput and prevent the OOMEs seen when the receiver end is overwhelmed as it is applying synchronous operations on the backup site, and the primary site is sending the operations asynchronously.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years
[JBoss JIRA] (ISPN-4909) Test clearTempDir throws NullPointerException on all Enviroments
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-4909?page=com.atlassian.jira.plugin.... ]
Dan Berindei resolved ISPN-4909.
--------------------------------
Fix Version/s: 8.0.0.Final
Resolution: Done
> Test clearTempDir throws NullPointerException on all Enviroments
> ----------------------------------------------------------------
>
> Key: ISPN-4909
> URL: https://issues.jboss.org/browse/ISPN-4909
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Reporter: Roman Macor
> Fix For: 8.0.0.Final
>
>
> Description of problem:
> Infinispan testsuite test org.infinispan.persistence.leveldb.config.ConfigurationTest.clearTempDir throws NullPointerException on all Enviroments.
> Full trace log:
> java.lang.NullPointerException
> at java.io.File.<init>(File.java:277)
> at org.infinispan.test.TestingUtil.recursiveFileRemove(TestingUtil.java:566)
> at org.infinispan.persistence.leveldb.config.ConfigurationTest.clearTempDir(ConfigurationTest.java:44)
> 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.invokeConfigurationMethod(Invoker.java:564)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
> at org.testng.TestRunner.afterRun(TestRunner.java:1021)
> at org.testng.TestRunner.run(TestRunner.java:621)
> 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:745)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years
[JBoss JIRA] (ISPN-7043) Cloud cache store using AWS S3 fails to work with caches which names contain underscore
by Vojtech Juranek (JIRA)
Vojtech Juranek created ISPN-7043:
-------------------------------------
Summary: Cloud cache store using AWS S3 fails to work with caches which names contain underscore
Key: ISPN-7043
URL: https://issues.jboss.org/browse/ISPN-7043
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 8.2.4.Final
Reporter: Vojtech Juranek
Assignee: Vojtech Juranek
When cloud cache store use AWS S3 as storage backend, cloud cache store fails on caches which conatins underscore (e.g. on {{___defaultcache}}). It happen only when {{aws-s3}} provider is used, as it uses URI in format {{http://CONTAINERPREFIX-___$CACHENAME.s3.amazonaws.com/}}. When {{s3}} is used as a provider, it works fine, but {{aws-s3}} is recommended provider (recommended by jclouds).
It fails with
{noformat}
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
Exception in thread "main" org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:867)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:633)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:622)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:547)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:238)
at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:890)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:636)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:587)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:452)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:438)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:420)
at org.infinispan.demo.S3CacheStore.main(S3CacheStore.java:22)
Caused by: org.infinispan.commons.CacheException: Unable to start cache loaders
at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:171)
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.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
... 12 more
Caused by: java.lang.IllegalArgumentException: endpoint.getHost() is null for http://ispn-store-___defaultcache.s3.amazonaws.com/
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:125)
at org.jclouds.http.HttpRequest.<init>(HttpRequest.java:245)
at org.jclouds.rest.internal.GeneratedHttpRequest.<init>(GeneratedHttpRequest.java:83)
at org.jclouds.rest.internal.GeneratedHttpRequest$Builder.build(GeneratedHttpRequest.java:63)
at org.jclouds.rest.internal.GeneratedHttpRequest$Builder.build(GeneratedHttpRequest.java:42)
at org.jclouds.rest.binders.BindAsHostPrefix.bindToRequest(BindAsHostPrefix.java:41)
at org.jclouds.s3.binders.BindAsHostPrefixIfConfigured.bindToRequest(BindAsHostPrefixIfConfigured.java:59)
at org.jclouds.rest.internal.RestAnnotationProcessor.decorateRequest(RestAnnotationProcessor.java:627)
at org.jclouds.rest.internal.RestAnnotationProcessor.apply(RestAnnotationProcessor.java:326)
at org.jclouds.rest.internal.RestAnnotationProcessor.apply(RestAnnotationProcessor.java:129)
at org.jclouds.rest.internal.InvokeHttpMethod.toCommand(InvokeHttpMethod.java:188)
at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:84)
at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
at org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:156)
at org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:123)
at com.sun.proxy.$Proxy45.bucketExists(Unknown Source)
at org.jclouds.s3.blobstore.S3BlobStore.containerExists(S3BlobStore.java:130)
at org.infinispan.persistence.cloud.CloudStore.start(CloudStore.java:112)
at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:138)
... 17 more
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years
[JBoss JIRA] (ISPN-7041) Cloud cache store fails to create new container in OpenStack Swift
by Vojtech Juranek (JIRA)
[ https://issues.jboss.org/browse/ISPN-7041?page=com.atlassian.jira.plugin.... ]
Vojtech Juranek updated ISPN-7041:
----------------------------------
Status: Open (was: New)
> Cloud cache store fails to create new container in OpenStack Swift
> ------------------------------------------------------------------
>
> Key: ISPN-7041
> URL: https://issues.jboss.org/browse/ISPN-7041
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 8.2.4.Final
> Reporter: Vojtech Juranek
> Assignee: Vojtech Juranek
>
> When target container doesn't exists, cloud cache store will create it. However, on OpenStack Swift it fails with
> {noformat}
> Exception in thread "main" org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
> at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:867)
> at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:633)
> at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:622)
> at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:547)
> at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:238)
> at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:890)
> at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:636)
> at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:587)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:452)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:438)
> at org.infinispan.demo.SwiftCacheStore.main(SwiftCacheStore.java:20)
> Caused by: org.infinispan.commons.CacheException: Unable to start cache loaders
> at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:171)
> 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.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
> ... 11 more
> Caused by: java.lang.IllegalArgumentException: location must be null or {scope=REGION, id=regionOne, description=regionOne, parent=openstack-swift}
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
> at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.createContainerInLocation(RegionScopedSwiftBlobStore.java:147)
> at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.createContainerInLocation(RegionScopedSwiftBlobStore.java:142)
> at org.infinispan.persistence.cloud.CloudStore.start(CloudStore.java:118)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:138)
> ... 16 more
> {noformat}
> As jclouds doesn't require region to be defined for Swift, probably best approach is to allow users not to specify the region.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years
[JBoss JIRA] (ISPN-7041) Cloud cache store fails to create new container in OpenStack Swift
by Vojtech Juranek (JIRA)
[ https://issues.jboss.org/browse/ISPN-7041?page=com.atlassian.jira.plugin.... ]
Vojtech Juranek updated ISPN-7041:
----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan-cachestore-cloud/pull/7
> Cloud cache store fails to create new container in OpenStack Swift
> ------------------------------------------------------------------
>
> Key: ISPN-7041
> URL: https://issues.jboss.org/browse/ISPN-7041
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 8.2.4.Final
> Reporter: Vojtech Juranek
> Assignee: Vojtech Juranek
>
> When target container doesn't exists, cloud cache store will create it. However, on OpenStack Swift it fails with
> {noformat}
> Exception in thread "main" org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172)
> at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:867)
> at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:633)
> at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:622)
> at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:547)
> at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:238)
> at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:890)
> at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:636)
> at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:587)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:452)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:438)
> at org.infinispan.demo.SwiftCacheStore.main(SwiftCacheStore.java:20)
> Caused by: org.infinispan.commons.CacheException: Unable to start cache loaders
> at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:171)
> 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.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
> ... 11 more
> Caused by: java.lang.IllegalArgumentException: location must be null or {scope=REGION, id=regionOne, description=regionOne, parent=openstack-swift}
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
> at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.createContainerInLocation(RegionScopedSwiftBlobStore.java:147)
> at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.createContainerInLocation(RegionScopedSwiftBlobStore.java:142)
> at org.infinispan.persistence.cloud.CloudStore.start(CloudStore.java:118)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:138)
> ... 16 more
> {noformat}
> As jclouds doesn't require region to be defined for Swift, probably best approach is to allow users not to specify the region.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years