[JBoss JIRA] (ISPN-11300) Add internal metadata to cache entries
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-11300?page=com.atlassian.jira.plugi... ]
Pedro Ruivo updated ISPN-11300:
-------------------------------
Fix Version/s: 11.0.0.Alpha2
> Add internal metadata to cache entries
> --------------------------------------
>
> Key: ISPN-11300
> URL: https://issues.redhat.com/browse/ISPN-11300
> Project: Infinispan
> Issue Type: Sub-task
> Components: Cross-Site Replication
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Priority: Major
> Fix For: 11.0.0.Alpha2
>
>
> IRAC will need versioning to handle the async update correctly. This version is internal an it shouldn't be exposed to the user; so Metadata.version() can't be used.
> Add internal metadata to cache entries. After this is fixed, the internal metadata will be added to the persistence and commands.
> Also, optimistic transaction versions need to be moved here.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11298) Create TakeOfflineManager
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-11298?page=com.atlassian.jira.plugi... ]
Pedro Ruivo updated ISPN-11298:
-------------------------------
Fix Version/s: 11.0.0.Alpha2
> Create TakeOfflineManager
> -------------------------
>
> Key: ISPN-11298
> URL: https://issues.redhat.com/browse/ISPN-11298
> Project: Infinispan
> Issue Type: Sub-task
> Components: Cross-Site Replication
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Priority: Major
> Fix For: 11.0.0.Alpha2
>
>
> The code to take sites offline is embedded in BackupSender. Since IRAC is complex on its own, it will be implemented in a different class.
> The take offline code is common and it needs to be extracted to an independent component to be shared between IRAC and sync xsite.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11368) Refactor CacheImpl code
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-11368?page=com.atlassian.jira.plugi... ]
Work on ISPN-11368 started by Pedro Ruivo.
------------------------------------------
> Refactor CacheImpl code
> -----------------------
>
> Key: ISPN-11368
> URL: https://issues.redhat.com/browse/ISPN-11368
> Project: Infinispan
> Issue Type: Sub-task
> Components: Core
> Affects Versions: 11.0.0.Alpha1
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Priority: Major
> Fix For: 11.0.0.Alpha2
>
>
> The Cross-site request uses the {{Cache}} API to apply the updates from the remote site. With IRAC, we need to bypass the public API to inject the internal version needed.
> This JIRA refactors the code in {{CacheImpl}} to another class that can be used by IRAC.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11368) Refactor CacheImpl code
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-11368:
----------------------------------
Summary: Refactor CacheImpl code
Key: ISPN-11368
URL: https://issues.redhat.com/browse/ISPN-11368
Project: Infinispan
Issue Type: Sub-task
Components: Core
Affects Versions: 11.0.0.Alpha1
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
Fix For: 11.0.0.Alpha2
The Cross-site request uses the {{Cache}} API to apply the updates from the remote site. With IRAC, we need to bypass the public API to inject the internal version needed.
This JIRA refactors the code in {{CacheImpl}} to another class that can be used by IRAC.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11368) Refactor CacheImpl code
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-11368?page=com.atlassian.jira.plugi... ]
Pedro Ruivo updated ISPN-11368:
-------------------------------
Status: Open (was: New)
> Refactor CacheImpl code
> -----------------------
>
> Key: ISPN-11368
> URL: https://issues.redhat.com/browse/ISPN-11368
> Project: Infinispan
> Issue Type: Sub-task
> Components: Core
> Affects Versions: 11.0.0.Alpha1
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Priority: Major
> Fix For: 11.0.0.Alpha2
>
>
> The Cross-site request uses the {{Cache}} API to apply the updates from the remote site. With IRAC, we need to bypass the public API to inject the internal version needed.
> This JIRA refactors the code in {{CacheImpl}} to another class that can be used by IRAC.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11179) server-runtime test suite okhttp thread leaks
by Tristan Tarrant (Jira)
[ https://issues.redhat.com/browse/ISPN-11179?page=com.atlassian.jira.plugi... ]
Tristan Tarrant updated ISPN-11179:
-----------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/7784, https://github.com/infinispan/infinispan/pull/7894 (was: https://github.com/infinispan/infinispan/pull/7784)
> server-runtime test suite okhttp thread leaks
> ---------------------------------------------
>
> Key: ISPN-11179
> URL: https://issues.redhat.com/browse/ISPN-11179
> Project: Infinispan
> Issue Type: Bug
> Components: Server, Test Suite
> Affects Versions: 10.1.0.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 10.1.3.Final
>
>
> {{Testcontainers}} connects to the Docker daemon using the REST API over the Unix socket at {{/var/run/docker.sock}} (using {{dockerjava}} and {{OkHttpClient}}).
> Following logs requires a long-running connection, and {{LogUtils.attachConsumer}} discards the stream from OkHttpClient/dockerjava, so the connection is never closed. Perhaps the Testcontainers authors assumed that the docker server will kill the connection when the container is stopped, but that doesn't happen.
> {noformat}
> 23:30:59,573 ERROR [TestSuiteProgress] Test failed: UNKNOWN.ThreadLeakChecker
> org.infinispan.commons.test.ThreadLeakChecker$LeakException: Leaked thread: tc-okhttp-stream-513080861 << testng-ResilienceIT << UNKNOWN
> at org.testcontainers.shaded.org.scalasbt.ipcsocket.UnixDomainSocketLibrary.read(Native Method) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.org.scalasbt.ipcsocket.UnixDomainSocket$UnixDomainSocketInputStream.doRead(UnixDomainSocket.java:149) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.org.scalasbt.ipcsocket.UnixDomainSocket$UnixDomainSocketInputStream.read(UnixDomainSocket.java:136) ~[testcontainers-1.12.4.jar:?]
> at java.io.FilterInputStream.read(FilterInputStream.java:133) ~[?:?]
> at org.testcontainers.dockerclient.transport.okhttp.UnixSocketFactory$1$1.read(UnixSocketFactory.java:46) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okio.Okio$2.read(Okio.java:140) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okio.RealBufferedSource.request(RealBufferedSource.java:72) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okio.RealBufferedSource.require(RealBufferedSource.java:65) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okio.RealBufferedSource.readHexadecimalUnsignedLong(RealBufferedSource.java:307) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okhttp3.internal.http1.Http1ExchangeCodec$ChunkedSource.readChunkSize(Http1ExchangeCodec.java:492) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okhttp3.internal.http1.Http1ExchangeCodec$ChunkedSource.read(Http1ExchangeCodec.java:471) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.java:286) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.shaded.okio.RealBufferedSource.exhausted(RealBufferedSource.java:61) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder$FramedSink.accept(OkHttpInvocationBuilder.java:363) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder$FramedSink.accept(OkHttpInvocationBuilder.java:352) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder.lambda$executeAndStream$3(OkHttpInvocationBuilder.java:314) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder$$Lambda$1863/0x0000000100fd5840.run(Unknown Source) ~[?:?]
> at java.lang.Thread.run(Thread.java:834) ~[?:?]
> Caused by: org.infinispan.commons.test.ThreadLeakChecker$LeakException: testng-ResilienceIT << UNKNOWN
> at org.infinispan.commons.test.ThreadLeakChecker$ThreadInfoLocal.childValue(ThreadLeakChecker.java:107) ~[infinispan-commons-test-11.0.0-SNAPSHOT.jar:11.0.0-SNAPSHOT]
> at org.infinispan.commons.test.ThreadLeakChecker$ThreadInfoLocal.childValue(ThreadLeakChecker.java:104) ~[infinispan-commons-test-11.0.0-SNAPSHOT.jar:11.0.0-SNAPSHOT]
> at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:411) ~[?:?]
> at java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:276) ~[?:?]
> at java.lang.Thread.<init>(Thread.java:450) ~[?:?]
> at java.lang.Thread.<init>(Thread.java:709) ~[?:?]
> at java.lang.Thread.<init>(Thread.java:630) ~[?:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder.executeAndStream(OkHttpInvocationBuilder.java:319) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder.executeAndStream(OkHttpInvocationBuilder.java:295) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder.get(OkHttpInvocationBuilder.java:89) ~[testcontainers-1.12.4.jar:?]
> at com.github.dockerjava.core.exec.LogContainerCmdExec.execute0(LogContainerCmdExec.java:42) ~[testcontainers-1.12.4.jar:?]
> at com.github.dockerjava.core.exec.LogContainerCmdExec.execute0(LogContainerCmdExec.java:12) ~[testcontainers-1.12.4.jar:?]
> at com.github.dockerjava.core.exec.AbstrAsyncDockerCmdExec.execute(AbstrAsyncDockerCmdExec.java:56) ~[testcontainers-1.12.4.jar:?]
> at com.github.dockerjava.core.exec.AbstrAsyncDockerCmdExec.exec(AbstrAsyncDockerCmdExec.java:21) ~[testcontainers-1.12.4.jar:?]
> at com.github.dockerjava.core.exec.AbstrAsyncDockerCmdExec.exec(AbstrAsyncDockerCmdExec.java:12) ~[testcontainers-1.12.4.jar:?]
> at com.github.dockerjava.core.command.AbstrAsyncDockerCmd.exec(AbstrAsyncDockerCmd.java:21) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.utility.LogUtils.attachConsumer(LogUtils.java:99) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.utility.LogUtils.followOutput(LogUtils.java:36) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.utility.LogUtils.followOutput(LogUtils.java:51) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.containers.Container.followOutput(Container.java:391) ~[testcontainers-1.12.4.jar:?]
> at java.util.ArrayList.forEach(ArrayList.java:1540) ~[?:?]
> at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:412) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:317) ~[testcontainers-1.12.4.jar:?]
> at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81) ~[duct-tape-1.0.8.jar:?]
> at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:315) ~[testcontainers-1.12.4.jar:?]
> at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:302) ~[testcontainers-1.12.4.jar:?]
> at org.infinispan.server.test.ContainerInfinispanServerDriver.start(ContainerInfinispanServerDriver.java:146) ~[test-classes/:?]
> at org.infinispan.server.test.InfinispanServerDriver.start(InfinispanServerDriver.java:109) ~[test-classes/:?]
> at org.infinispan.server.test.InfinispanServerRule$1.evaluate(InfinispanServerRule.java:86) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11367) getCache(name) should never use the default cache's configuration
by Dan Berindei (Jira)
Dan Berindei created ISPN-11367:
-----------------------------------
Summary: getCache(name) should never use the default cache's configuration
Key: ISPN-11367
URL: https://issues.redhat.com/browse/ISPN-11367
Project: Infinispan
Issue Type: Enhancement
Components: Configuration, Core
Affects Versions: 11.0.0.Alpha1, 10.1.2.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 11.0.0.Alpha2
{{DefaultCacheManager.getCache(name)}} will try to create the cache if it doesn't exist, and if a matching configuration doesn't exist either it uses the default cache's configuration.
Since 9.0 named cache configurations no longer inherit from the default cache configuration, so using the default cache's configuration as a default configuration is surprising.
{{DefaultCacheManager.getCache(name)}} should only create the cache if a matching configuration exists, otherwise it should throw an exception.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (ISPN-11366) Remove Deprecated ConsistentHash methods
by Ryan Emerson (Jira)
Ryan Emerson created ISPN-11366:
-----------------------------------
Summary: Remove Deprecated ConsistentHash methods
Key: ISPN-11366
URL: https://issues.redhat.com/browse/ISPN-11366
Project: Infinispan
Issue Type: Task
Components: Core
Affects Versions: 11.0.0.Alpha1
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Removing the deprecated {{ConsistentHash}} methods and add no longer serialize a generic Hash implementation as implementation is always Murmur3Hash.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month