Finalising stuff for 4.1.0.GA
by Manik Surtani
Guys,
Can we please aim to have all 4.1.0 tasks closed up this week?
http://links.infinispan.org/iypht
There aren't many, and most of them seem to be documentation-related, so if we can spend a few cycles closing these up that would be great. That would put us in a very good position to address any issues that crop up on the user forums quickly and efficiently, and hopefully push out a 4.1.0.Final fairly soon.
Cheers
Manik
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
13 years, 10 months
SKIP_CACHE_STORE usage
by Sanne Grinovero
Hello,
I just noticed that the Flag.SKIP_CACHE_STORE will prevent my values
to be put in the store, but when using it with get() then the store is
still invoked; from the option name I was expecting it to skip lookup
too?
So I'm not sure how this was intended to work, should I clarify this
limitation in the javadocs or can I propose a fix to the
implementation, in case this wasn't intended?
I'd personally love to fix the implementation, as I've several use
cases in which this invocation is a useless yet expensive operation
for some types as the same flag is always used when putting in this
specific key types (and I can't use an additional differently
configured cache for it).
Cheers,
Sanne
13 years, 10 months
being able to preload data from a JdbcStringBasedCacheStore
by Sanne Grinovero
Hello,
as Mircea pointed out that the JdbcStringBasedCacheStore should be
used instead of the JdbcBinaryCacheStore when possible,
in particular when I'm under control of all key types - which is the
case for the LuceneDirectory - so I'd like to use it.
Unfortunately I just opened ISPN-579, and this issue also points out
that this Store implementation actually doesn't support preloading, a
natural consequence from the fact that the Key2StringMapper is missing
the inverse transformation from String to Object.
I'd like to define the interface for the inverse transformation too, I
think it would be useful - possibly not making it mandatory, by
allowing to throw a non-supported-operation exception or extending the
interface to a new one having the missing method.
WDYT?
13 years, 10 months
Findings from the cache store corruption issue - ISPN-575
by Galder Zamarreño
Hi Sanne,
I've looked at the CacheStoreStressTest in https://jira.jboss.org/browse/ISPN-575 and there's something I haven't understood:
In the test, there appears to be a single thread which is a writer and the rest are reading. Now, when looking to SingleChunkIndexInput constructor, it appears that you're skipping locking for reading the chunk via:
buffer = (byte[]) cache.withFlags(Flag.SKIP_LOCKING).get(key);
If you skip locking, how do you guarantee that you won't be reading data that's in the process of being updated? Is there some other locking strategy used to guarantee that correct reads? However, if this was the cause of the issue, I'd imagine it'd fail when no cache store is present as well, wouldn't it?
I'm away on vacation till next Friday, so don't have more time to look into it right now. I'm attaching a patch with some extra logging I've added. The key is finding out why the byte[] stored and retrieved are different. Maybe Mircea can help further from Monday onwards when he gets back from holidays?
One last thing, setting TRACE on org.infinispan is a bit exagerated, generates huges files and does not fail. I've been playing with setting TRACE to org.infinispan.loaders and org.infinispan.lucene
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
13 years, 10 months
BerkeleyDB store licensed to use with JBoss Cache
by Sanne Grinovero
Hello,
when starting a bdb instance as store for Infinispan, I get this notice:
"If you choose to use Berkeley DB Java Edition with JBoss Cache, you
must comply with the terms
of Oracle's public license, included in the file LICENSE.txt.
If you prefer not to release the source code for your own application
in order to comply
with the Oracle public license, you may purchase a different license for use of
Berkeley DB Java Edition with JBoss Cache."
shouldn't this text be updated to reference "Infinispan" instead?
Sanne
13 years, 10 months
ISPN-466
by Thomas Kühne
Hi,
I have developed a SessionManager for Jetty to share sessions between cluster
members. If you are interested I would like to share the code to discuss and improve
it.
Regards,
Thomas
13 years, 10 months
Distributed execution framework
by Mauricio Salatino
Hi Vladimir,
I'm new here in the mailing list, but I'm working in the Drools project, and
I'm trying to achieve distributed execution of the Drools platform using the
Rio Project (http://www.rio-project.org/). Would be nice to share
experiencies and goals, because I think that a good integration between all
these technologies will help the adoption and also the things that the users
can do with them.
Greetings.
Hi,
I wanted to gather feedback from community regarding proposed scope
and objectives of Distributed execution framework targeted for
Infinispan 5.0. The document is a gentle introduction to the subject
of distributed execution and as such is accessible to wider audience.
Eager to hear your thoughts.
Regards,
Vladimir
https://community.jboss.org/wiki/InfinispanDistributedExecutionFramework
--
Vladimir Blagojevic
JBoss Clustering Team
JBoss, by Red Hat
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
13 years, 10 months
Repository name divergence annoyances
by Galder Zamarreño
Hi,
In parent/pom.xml we define: jboss-releases and jboss-snapshots repositories. So, our settings.xml must match those names in order to upload correctly.
However, other JBoss projects rely on different repo names which are instead: jboss-releases-repository and jboss-snapshots-repository (http://repository.jboss.org/maven2/org/jboss/jboss-parent/5/jboss-parent-...)
It's quite a PITA getting 401 or auth errors and then changing my local settings between the two names depending on whether I'm uploading Infinispan or another JBoss project.
Can Infinispan consolidate the repo names to be jboss-releases-repository and jboss-snapshots-repository to avoid these issues?
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
13 years, 10 months
AbstractMarshaller needed for common impls
by Galder Zamarreño
Hi,
I think we could use with having an AbstractMarshaller with common implementations for:
public ByteBuffer objectToBuffer(Object obj) throws IOException {
return objectToBuffer(obj, DEFAULT_BUF_SIZE);
}
public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException {
ByteBuffer b = objectToBuffer(obj, estimatedSize);
byte[] bytes = new byte[b.getLength()];
System.arraycopy(b.getBuf(), b.getOffset(), bytes, 0, b.getLength());
return bytes;
}
public Object objectFromByteBuffer(byte[] buf) throws IOException, ClassNotFoundException {
return objectFromByteBuffer(buf, 0, buf.length);
}
These 3 methods have exactly the same impl in GenericJBossMarshaller.
I'll go ahead with this.
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
13 years, 10 months