few bugs
by Ales Justin
Using Infinispan 5.1.1.Final in custom AS7 branch.
1) using DistributedExecutorService::submit with non <distributable-cache> results in NPE
protected <K> Map<Address, List<K>> mapKeysToNodes(K... input) {
DistributionManager dm = cache.getDistributionManager();
Map<Address, List<K>> addressToKey = new HashMap<Address, List<K>>(input.length * 2);
for (K key : input) {
Address ownerOfKey = dm.getPrimaryLocation(key); // <------- dm is null
2) using AdvancedCache::lock w/o Tx present results in CCE
java.lang.ClassCastException: org.infinispan.context.impl.NonTxInvocationContext cannot be cast to org.infinispan.context.impl.TxInvocationContext
at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:129)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
at org.infinispan.CacheImpl.lock(CacheImpl.java:481)
at org.infinispan.CacheImpl.lock(CacheImpl.java:468)
at org.infinispan.AbstractDelegatingAdvancedCache.lock(AbstractDelegatingAdvancedCache.java:153)
Ping me if you need more info / details.
-Ales
13 years
Reminder on trickiness for guarding against log trace
by Sanne Grinovero
It's easy to be fooled by the nice looking tracef API; can you see
what's wrong with the next method?
log.tracef("%s: Committing view %s", cacheName, viewId);
[solution below]
The signature for such a tracef method is
tracef(String format, Object param1, Object param2);
so integers, booleans, etcetera.. will be boxed into objects.
13 years
5.1.2.CR1
by Galder Zamarreño
Hi all,
We're hoping to release 5.1.2.CR1 tomorrow, so please close, or reschedule, any jiras that you might have assigned to you.
The list of JIRAs can be found here: http://goo.gl/pUyvI
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
13 years
Re: [infinispan-dev] Nexus proxying not working?
by Galder Zamarreño
Paul, I did a mistake uploading the artifcats since I forgot to to add jar and sources jar artifacts.
I can't delete https://repository.jboss.org/nexus/content/groups/public/com/sleepycat/je... and can't seem to be able to re-upload.
Can you help?
On Feb 21, 2012, at 5:45 PM, Paul Gier wrote:
> I think this repository was removed because it was causing Nexus to make
> lots of outgoing connections. The older sleepycat version was uploaded
> to our thirdparty-uploads repo, which is probably the best thing to do
> to make the newer version available.
>
> https://community.jboss.org/wiki/UploadingAThirdpartyArtifact
>
> On 02/21/2012 10:28 AM, Galder Zamarreño wrote:
>> Hey Paul,
>>
>> Re: https://issues.jboss.org/browse/ISPN-1863
>>
>> Is nexus proxying to other repos such as http://download.oracle.com/maven/ working fine?
>>
>> http://repository.jboss.org/nexus/content/groups/public/com/sleepycat/je/... is present
>>
>> http://repository.jboss.org/nexus/content/groups/public/com/sleepycat/je/... is not present
>>
>> But http://download.oracle.com/maven/com/sleepycat/je/5.0.34/je-5.0.34.pom works fine.
>>
>> Cheers,
>> --
>> Galder Zamarreño
>> Sr. Software Engineer
>> Infinispan, JBoss Cache
>>
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
13 years
Infinispan cdi example/tutorial
by Duncan Bloem
Hi all,
Hantsy Bai and I made a 'sign-up request' application based on infinispan
5.1.1.
we have used cdi and infinispan-cdi, together with jax-rs and tests written
in arquillian and jsfunit.
The application is not that complex, and I think it makes a perfect
example/tutorial.
I would love to get some feedback from the infinispan community, before I
announce and blog about it.
Any feedback about code practices, documentation or anything else is
welcome!
The application will be opensource.
Take a look and fork away...
https://github.com/dabloem/signup-app
Thanks in advance,
Duncan
13 years
withTx and withCacheManager test helper methods
by Galder Zamarreño
Hi all,
Not sure if you've noticed but I've created a couple of helper methods in TestingUtil:
1. https://github.com/galderz/infinispan/blob/t_1869_m/core/src/test/java/or...
The aim of this method is to make sure that a portion of code can be executed within a transaction making sure that the right transaction lifecycle pattern is used that guarantees that the transaction will either be committed or rollbacked.
2. https://github.com/galderz/infinispan/blob/t_1869_m/core/src/test/java/or...
Sometimes you might wanna start a cache manager within a method, for example, to test some configuration validation. This method guarantees that a cache manager created will be stopped, hence avoids code where cache managers are started and stopping them is forgotten. This is a new method I've just added as part of ISPN-1869.
There're examples of using these methods in the test source code.
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
13 years