[JBoss JIRA] (ISPN-7680) [OSGi] Enable karaf-maven-plugin
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-7680?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-7680:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.1.1.Final
(was: 9.2.0.Final)
Resolution: Done
> [OSGi] Enable karaf-maven-plugin
> --------------------------------
>
> Key: ISPN-7680
> URL: https://issues.jboss.org/browse/ISPN-7680
> Project: Infinispan
> Issue Type: Enhancement
> Affects Versions: 9.0.0.CR3
> Reporter: Paolo Antinori
> Assignee: Dan Berindei
> Fix For: 9.1.1.Final
>
>
> Enabling {{org.apache.karaf.tooling:karaf-maven-plugin:verify}} allows to validate Karaf {{features.xml}}.
> Validation assures that the feature definition declares all its dependencies so to be able to installed in complete isolation.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months
[JBoss JIRA] (ISPN-8174) LocalStreamIteratorWithPassivationTest random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-8174?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-8174:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> LocalStreamIteratorWithPassivationTest random failures
> ------------------------------------------------------
>
> Key: ISPN-8174
> URL: https://issues.jboss.org/browse/ISPN-8174
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Gustavo Fernandes
> Assignee: William Burns
> Labels: testsuite_stability
> Fix For: 9.2.0.Final, 9.1.1.Final
>
>
> {noformat}
> [ERROR] testConcurrentActivationWithFilter[LOCAL, tx=false](org.infinispan.stream.LocalStreamIteratorWithPassivationTest) Time elapsed: 0.036 s <<< FAILURE!
> org.infinispan.util.concurrent.TimeoutException: Couldn't retrieve entry an entry from store in allotted timeout: 10 unit: SECONDS
> at org.infinispan.persistence.util.PersistenceManagerCloseableSupplier.get(PersistenceManagerCloseableSupplier.java:137)
> at org.infinispan.persistence.util.PersistenceManagerCloseableSupplier.get(PersistenceManagerCloseableSupplier.java:32)
> at org.infinispan.util.CloseableSuppliedIterator.getNext(CloseableSuppliedIterator.java:27)
> at org.infinispan.util.CloseableSuppliedIterator.hasNext(CloseableSuppliedIterator.java:33)
> at org.infinispan.util.DistinctKeyDoubleEntryCloseableIterator.hasNext(DistinctKeyDoubleEntryCloseableIterator.java:55)
> at org.infinispan.stream.impl.spliterators.IteratorAsSpliterator.tryAdvance(IteratorAsSpliterator.java:158)
> at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
> at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
> at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169)
> at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
> at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
> at org.infinispan.commons.util.Closeables$IteratorAsCloseableIterator.hasNext(Closeables.java:115)
> at org.infinispan.stream.LocalStreamIteratorWithPassivationTest.testConcurrentActivationWithFilter(LocalStreamIteratorWithPassivationTest.java:159)
> 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:84)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months
[JBoss JIRA] (ISPN-8069) Clustered Locks Embedded Mode
by Katia Aresti (JIRA)
[ https://issues.jboss.org/browse/ISPN-8069?page=com.atlassian.jira.plugin.... ]
Work on ISPN-8069 started by Katia Aresti.
------------------------------------------
> Clustered Locks Embedded Mode
> -----------------------------
>
> Key: ISPN-8069
> URL: https://issues.jboss.org/browse/ISPN-8069
> Project: Infinispan
> Issue Type: Feature Request
> Reporter: Katia Aresti
> Assignee: Katia Aresti
>
> h2. ClusteredLockManager and configuration
> {code:java}
> package org.infinispan.lock.api;
> public class ClusteredLockManager {
> boolean defineLock(String name, LockConfiguration configuration);
> InfinispanLock get(String name);
> LockConfiguration getConfiguration(String name);
> boolean isDefined(String name);
> CompletableFuture<Boolean> remove(String name);
> CompletableFuture<Void> reset(String name);
> }
> public class LockConfiguration {
> private final RentrancyLevel lentrancyLevel; // default NOT_REENTRANT
> private final boolean silentFailover; // default true
> // The maximum length of time for which a client can hold and renew a lock aquisition
> private final long maxLeaseTime;
> // Maximum length of time a lock may be held without updating the lease,
> // after that time any attempt to lock it will succeed
> private final long renewalLeaseTime;
> }
> public enum RentrancyLevel {
> NODE, // Node can lock if it owns the lock without blocking, only the owner node can unlock
> INSTANCE, // Instance can lock multiple times if it owns the lock without blocking, only the owner instance can unlock
> NOT_REENTRANT // Nobody can take the lock if already taken, but everybody can release it
> }
> {code}
> h4. InfinispanLock defineLock(String name, LockConfiguration configuration)
> Defines a lock with the specific name and LockConfiguration. It does not overwrite existing configurations.
> Returns true if successfully defined or false if the lock is already defined or any other failure. If silentFailover is false, then InfinispanLockException will be raised.
> h4. InfinispanLock get(String name)
> Get’s a InfinipanLock by it’s name and throws InfinispanLockException if the lock is not not defined. User must call defineLock before this method.
> h4. Optional<LockConfiguration> getConfiguration(String name);
> Get’s the configuration for a Lock. If the Lock does not exist, Optional.empty() will be returned.
> h4. boolean isDefined(String name)
> True if the lock exists, false if it doesn’t
> h4. CompletableFuture<Boolean> remove(String name)
> Removes a Lock from the system. Returns true when it was removed, false when the lock does not exist. If any other Runtime problems appear, InfinispanLockException will be raised withe the reason. As Locks are not removed automatically, so this has to be done programatically when the Lock is no longer needed. Otherwise, OutOfMemoryException could happen.
> Remove must be executed when the lock is locked, because running that without exclusive access should result in an exception. Internally, the implementation should contain generation number so that attempts to acquire a lock of a removed generation will result it exceptions in the other callers, too.
> h4. CompletableFuture<Void> reset(String name)
> Resets the lock to its initial state. If any parties are currently waiting at the lock, they will return with failure on the CompletableFuture
> h2. InfinispanLock
>
> When a cluster node holding a Lock dies, this lock is released and available for the others.
> {code:java}
> public interface InfinispanLock {
> CompletableFuture<Void> lock();
> CompletableFuture<Boolean> tryLock();
> CompletableFuture<Boolean> tryLock(long time, TimeUnit unit);
> CompletableFuture<Void> unlock();
> }
> {code}
> h4. CompletableFuture<Void> lock();
> CompletableFuture is completed successfully when the lock is acquired When a lock is aquired by a client, it will be automatically released after the maxLeaseTime specified. RenewalLeaseTime is the interval time is the time a client can aquire a lock consecutively User should set the timeouts to non-positive value The initial embedded implementation does not have to support positive values
> h4. CompletableFuture<Boolean> tryLock();
> Acquires the lock only if it is free at the time of invocation. Acquires the lock if it is available and returns with the value true. If the lock is not available then this method with the value false.
> h4. CompletableFuture<Boolean> tryLock(long time, TimeUnit unit);
> Acquires the lock if it is free within the given waiting time. If the lock is available this method returns with the value true.
> Parameters: time - the maximum time to wait for the lock unit - the time unit of the time argument Returns: true if the lock was acquired and false if the waiting time elapsed before the lock was acquired
> CompletableFuture fails with InfinispanLockException in case of error (InterruptedException, or any other non checked exceptions)
> h4. CompletableFuture<Boolean> unlock();
> If the lock is rentrant (Node or Instance), only the instance or node holding the lock will be able to unlock, otherwise, anybody can unlock and it will behave as a Semaphore with one permit. True answer will say that the operation was succesul and the lock has been released, false the lock has not been relased
> h2. Demo
> {code:java}
> public static void main(String[] args) throws Exception {
> EmbeddedCacheManager cm = Infinispan.createClustered();
> CounterManager counterManager = EmbeddedCounterManagerFactory.asCounterManager(cm);
> counterManager.defineCounter("counter", ...);
> WeakCounter counter = counterManager.weakCounter("counter");
> ClusteredLockManager lockManager = EmbeddedLockManagerFactory.asClusteredLockManager(cm);
> lockManager.defineLock("lock", ...);
> InfinispanLock lock = lockManager.get("lock");
> for (int i = 0; i < 100; i++) {
> System.out.println("Counter on " + i + " is => " + counter.getValue());
> lock.lock()
> .thenRun(new CounterExample(counter))
> .whenComplete((nil, t) -> lock.unlock());
> }
> cm.stop();
> }
> static class CounterExample implements Runnable {
> private WeakCounter counter;
> public CounterExample(WeakCounter counter) {
> this.counter = counter;
> }
> @Override
> public void run() {
> counter.increment();
> try {
> Thread.sleep(1000);
> } catch (InterruptedException e) {
> e.printStackTrace();
> }
> counter.decrement();
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months
[JBoss JIRA] (ISPN-8251) SoftIndexFileStoreTest.testWriteAndDeleteBatch
by Ryan Emerson (JIRA)
[ https://issues.jboss.org/browse/ISPN-8251?page=com.atlassian.jira.plugin.... ]
Ryan Emerson resolved ISPN-8251.
--------------------------------
Fix Version/s: 9.1.1.Final
Resolution: Done
> SoftIndexFileStoreTest.testWriteAndDeleteBatch
> ----------------------------------------------
>
> Key: ISPN-8251
> URL: https://issues.jboss.org/browse/ISPN-8251
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Assignee: Radim Vansa
> Labels: testsuite_stability
> Fix For: 9.1.1.Final
>
>
> org.infinispan.persistence.spi.PersistenceException: java.lang.IllegalStateException: End of file reached when reading key on 5:351
> at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:509)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.process(SoftIndexFileStore.java:519)
> at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1534)
> at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1539)
> at org.infinispan.persistence.BaseStoreTest.testWriteAndDeleteBatch(BaseStoreTest.java:540)
> 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)
> Caused by: java.lang.IllegalStateException: End of file reached when reading key on 5:351
> at org.infinispan.persistence.sifs.EntryRecord.readKey(EntryRecord.java:77)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:476)
> ... 24 more
> ... Removed 16 stack frames
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months
[JBoss JIRA] (ISPN-8279) Console support for Off-Heap
by Vladimir Blagojevic (JIRA)
[ https://issues.jboss.org/browse/ISPN-8279?page=com.atlassian.jira.plugin.... ]
Vladimir Blagojevic moved JDG-1222 to ISPN-8279:
------------------------------------------------
Project: Infinispan (was: JBoss Data Grid)
Key: ISPN-8279 (was: JDG-1222)
Workflow: GIT Pull Request with Triage workflow (was: CDW with loose statuses v1)
Component/s: Console
(was: Management and Monitoring)
Fix Build: (was: DR2)
Fix Version/s: 9.2.0.Final
(was: JDG 7.2 DR2)
> Console support for Off-Heap
> ----------------------------
>
> Key: ISPN-8279
> URL: https://issues.jboss.org/browse/ISPN-8279
> Project: Infinispan
> Issue Type: Feature Request
> Components: Console
> Reporter: Vladimir Blagojevic
> Assignee: Vladimir Blagojevic
> Fix For: 9.2.0.Final
>
>
> Backport console features that allow management / monitoring of off-heap memory
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months
[JBoss JIRA] (ISPN-8174) LocalStreamIteratorWithPassivationTest random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-8174?page=com.atlassian.jira.plugin.... ]
William Burns reassigned ISPN-8174:
-----------------------------------
Assignee: William Burns
> LocalStreamIteratorWithPassivationTest random failures
> ------------------------------------------------------
>
> Key: ISPN-8174
> URL: https://issues.jboss.org/browse/ISPN-8174
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Gustavo Fernandes
> Assignee: William Burns
> Labels: testsuite_stability
> Fix For: 9.2.0.Final, 9.1.1.Final
>
>
> {noformat}
> [ERROR] testConcurrentActivationWithFilter[LOCAL, tx=false](org.infinispan.stream.LocalStreamIteratorWithPassivationTest) Time elapsed: 0.036 s <<< FAILURE!
> org.infinispan.util.concurrent.TimeoutException: Couldn't retrieve entry an entry from store in allotted timeout: 10 unit: SECONDS
> at org.infinispan.persistence.util.PersistenceManagerCloseableSupplier.get(PersistenceManagerCloseableSupplier.java:137)
> at org.infinispan.persistence.util.PersistenceManagerCloseableSupplier.get(PersistenceManagerCloseableSupplier.java:32)
> at org.infinispan.util.CloseableSuppliedIterator.getNext(CloseableSuppliedIterator.java:27)
> at org.infinispan.util.CloseableSuppliedIterator.hasNext(CloseableSuppliedIterator.java:33)
> at org.infinispan.util.DistinctKeyDoubleEntryCloseableIterator.hasNext(DistinctKeyDoubleEntryCloseableIterator.java:55)
> at org.infinispan.stream.impl.spliterators.IteratorAsSpliterator.tryAdvance(IteratorAsSpliterator.java:158)
> at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
> at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
> at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169)
> at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
> at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
> at org.infinispan.commons.util.Closeables$IteratorAsCloseableIterator.hasNext(Closeables.java:115)
> at org.infinispan.stream.LocalStreamIteratorWithPassivationTest.testConcurrentActivationWithFilter(LocalStreamIteratorWithPassivationTest.java:159)
> 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:84)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months
[JBoss JIRA] (ISPN-8174) LocalStreamIteratorWithPassivationTest random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-8174?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-8174:
--------------------------------
Fix Version/s: 9.2.0.Final
> LocalStreamIteratorWithPassivationTest random failures
> ------------------------------------------------------
>
> Key: ISPN-8174
> URL: https://issues.jboss.org/browse/ISPN-8174
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Gustavo Fernandes
> Assignee: William Burns
> Labels: testsuite_stability
> Fix For: 9.2.0.Final, 9.1.1.Final
>
>
> {noformat}
> [ERROR] testConcurrentActivationWithFilter[LOCAL, tx=false](org.infinispan.stream.LocalStreamIteratorWithPassivationTest) Time elapsed: 0.036 s <<< FAILURE!
> org.infinispan.util.concurrent.TimeoutException: Couldn't retrieve entry an entry from store in allotted timeout: 10 unit: SECONDS
> at org.infinispan.persistence.util.PersistenceManagerCloseableSupplier.get(PersistenceManagerCloseableSupplier.java:137)
> at org.infinispan.persistence.util.PersistenceManagerCloseableSupplier.get(PersistenceManagerCloseableSupplier.java:32)
> at org.infinispan.util.CloseableSuppliedIterator.getNext(CloseableSuppliedIterator.java:27)
> at org.infinispan.util.CloseableSuppliedIterator.hasNext(CloseableSuppliedIterator.java:33)
> at org.infinispan.util.DistinctKeyDoubleEntryCloseableIterator.hasNext(DistinctKeyDoubleEntryCloseableIterator.java:55)
> at org.infinispan.stream.impl.spliterators.IteratorAsSpliterator.tryAdvance(IteratorAsSpliterator.java:158)
> at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
> at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
> at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169)
> at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
> at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
> at org.infinispan.commons.util.Closeables$IteratorAsCloseableIterator.hasNext(Closeables.java:115)
> at org.infinispan.stream.LocalStreamIteratorWithPassivationTest.testConcurrentActivationWithFilter(LocalStreamIteratorWithPassivationTest.java:159)
> 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:84)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 6 months