[JBoss JIRA] (ISPN-2255) FineGrainedAtomicMap missing key, value pairs in some cluster nodes in distributed mode, embedded infinispan cache
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-2255?page=com.atlassian.jira.plugin.... ]
Mircea Markus updated ISPN-2255:
--------------------------------
Labels: 621 (was: )
> FineGrainedAtomicMap missing key,value pairs in some cluster nodes in distributed mode, embedded infinispan cache
> -----------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-2255
> URL: https://issues.jboss.org/browse/ISPN-2255
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 5.1.5.FINAL
> Environment: Details about cluster:
> 1. Infinispan 5.1.5
> 2. java 7u5 64bit
> 3. linux 64bit (two nodes debian and one node ubuntu)
> 4. tomcat 7.0.28
> 5. jbossTM 4.16.0 JTA only
> Tomcat integration code is here:
> https://github.com/zvrablik/tomcatInfinispanSessionManager/tree/master/to...
> 6. all machines are on real hw ( no virtual machines), date and time is synchronized and shouldn't vary more than 1 second
> Reporter: Zdenek Henek
> Assignee: Pedro Ruivo
> Priority: Critical
> Labels: 621
> Fix For: 7.0.0.Alpha1, 7.0.0.Final
>
> Attachments: fgamissueTest2.zip, jgroupsConfig.xml, sessionInfinispanConfigtestLB.xml
>
>
> I am using FineGrainedAtomicMap to store data into clustering distributed cache. When clustering set to replicated doesn't cause any issues or at least I haven't run
> into any. When I switch to distributed mode I don't see some key,value pairs in some nodes. This happens randomly. The numOwners is set to two and I have cluster of three nodes.
> more details:
> https://community.jboss.org/thread/203420?tstart=60
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (ISPN-3957) Preload with async cache store is not efficient
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-3957?page=com.atlassian.jira.plugin.... ]
Mircea Markus updated ISPN-3957:
--------------------------------
Labels: 621 (was: )
> Preload with async cache store is not efficient
> -----------------------------------------------
>
> Key: ISPN-3957
> URL: https://issues.jboss.org/browse/ISPN-3957
> Project: Infinispan
> Issue Type: Enhancement
> Components: Loaders and Stores
> Affects Versions: 5.2.7.Final
> Reporter: Mircea Markus
> Assignee: Dan Berindei
> Labels: 621
> Fix For: 5.2.8.Final, 7.0.0.Alpha1, 7.0.0.Final
>
>
> Configuring on a AdvancedCacheLoader preload=true and asyn=true cause it to load each entry in the store in a loop, each entry being loaded through an store read.
> This is caused by the way loadAll is implemented in the AsynLoader: in order to enforce consistency with whatever is in memory it does some special handling. The thing is, though, that we don't need this advanced async loader logic during the initial preload, as the async cache loader is empty.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (ISPN-4053) WriteSkew not throwing an exception for AtomicMap in REPL and DIST mode
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-4053?page=com.atlassian.jira.plugin.... ]
Mircea Markus updated ISPN-4053:
--------------------------------
Labels: 621 (was: )
> WriteSkew not throwing an exception for AtomicMap in REPL and DIST mode
> -----------------------------------------------------------------------
>
> Key: ISPN-4053
> URL: https://issues.jboss.org/browse/ISPN-4053
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.1.Final
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Labels: 621
> Fix For: 7.0.0.Final, 7.0.0.Alpha2
>
>
> The writeSkewCheck flag does not work correctly for AtomicMap. When Infinispan runs in REPEATABLE_READ isolation mode for transactions, the writeSkewCheck flag is enabled, and two concurrent transactions read/write data from the same AtomicMap. The WriteSkewException exception is never thrown when committing either of the transactions.
> Consequently, the data stored in the AtomicMap might be changed by another transaction, and current transaction will not register this change during commit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (ISPN-4067) Infinispan cannot put inner classes to write-behind cache
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-4067?page=com.atlassian.jira.plugin.... ]
Adrian Nistor resolved ISPN-4067.
---------------------------------
Resolution: Rejected
> Infinispan cannot put inner classes to write-behind cache
> ---------------------------------------------------------
>
> Key: ISPN-4067
> URL: https://issues.jboss.org/browse/ISPN-4067
> Project: Infinispan
> Issue Type: Bug
> Components: Marshalling
> Affects Versions: 6.0.0.Final
> Environment: JDK 1.7_45
> Reporter: Stanislav Ivanov
> Assignee: Dan Berindei
> Priority: Minor
>
> Infinispan throws NotSerializableException when trying to put inner class to write-behind cache.
> Here is the example:
> {code:title=class which I want to store in cache (actually, it's inside the other class)|borderStyle=solid}
> final class PojoCoder implements Serializable {
> private static final long serialVersionUID = -6238699065180988597L;
> private String name_;
> private String favouriteLanguage_;
> PojoCoder(String name, String favouriteLanguage) {
> name_ = name;
> favouriteLanguage_ = favouriteLanguage;
> }
> @Override
> public String toString() {
> return name_ + " loves " + favouriteLanguage_;
> }
> public String getFavouriteLanguage() {
> return favouriteLanguage_;
> }
> public String getName() {
> return name_;
> }
> }
> {code}
> {code:title=cache config|borderStyle=solid}
> final EmbeddedCacheManager cacheManager = new DefaultCacheManager();
> cacheManager.defineConfiguration(CACHE_NAME,
> new ConfigurationBuilder()
> .eviction()
> .maxEntries(2)
> .persistence()
> .passivation(false)
> .addSingleFileStore()
> .location(tmpStoragePath)
> .maxEntries(6)
> .build());
> {code}
> {code:title=code that fails|borderStyle=solid}
> final Cache<String, PojoCoder> testCache = cacheManager.getCache(CACHE_NAME);
> testCache.put("alex", new PojoCoder("django-lover alex", "Python")); //NotSerializableException on this line
> {code}
> Actually, stack trace tells something about problem with *this* reference.
> Unfortunatelly, I don't have time to investigate deeper this issue - inner class was created just for test, normally I would store typical outer classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (ISPN-4067) Infinispan cannot put inner classes to write-behind cache
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-4067?page=com.atlassian.jira.plugin.... ]
Adrian Nistor commented on ISPN-4067:
-------------------------------------
[~stanislav.ivanov] Since that's a non-static inner class it would need the 'outer this' reference when being unserialized. That's why it cannot work and has nothing to do with Infinispan. Similar questions are already answered here: http://stackoverflow.com/questions/7144912/why-is-a-serializable-inner-cl...
Making the inner class static should avoid the problem.
> Infinispan cannot put inner classes to write-behind cache
> ---------------------------------------------------------
>
> Key: ISPN-4067
> URL: https://issues.jboss.org/browse/ISPN-4067
> Project: Infinispan
> Issue Type: Bug
> Components: Marshalling
> Affects Versions: 6.0.0.Final
> Environment: JDK 1.7_45
> Reporter: Stanislav Ivanov
> Assignee: Dan Berindei
> Priority: Minor
>
> Infinispan throws NotSerializableException when trying to put inner class to write-behind cache.
> Here is the example:
> {code:title=class which I want to store in cache (actually, it's inside the other class)|borderStyle=solid}
> final class PojoCoder implements Serializable {
> private static final long serialVersionUID = -6238699065180988597L;
> private String name_;
> private String favouriteLanguage_;
> PojoCoder(String name, String favouriteLanguage) {
> name_ = name;
> favouriteLanguage_ = favouriteLanguage;
> }
> @Override
> public String toString() {
> return name_ + " loves " + favouriteLanguage_;
> }
> public String getFavouriteLanguage() {
> return favouriteLanguage_;
> }
> public String getName() {
> return name_;
> }
> }
> {code}
> {code:title=cache config|borderStyle=solid}
> final EmbeddedCacheManager cacheManager = new DefaultCacheManager();
> cacheManager.defineConfiguration(CACHE_NAME,
> new ConfigurationBuilder()
> .eviction()
> .maxEntries(2)
> .persistence()
> .passivation(false)
> .addSingleFileStore()
> .location(tmpStoragePath)
> .maxEntries(6)
> .build());
> {code}
> {code:title=code that fails|borderStyle=solid}
> final Cache<String, PojoCoder> testCache = cacheManager.getCache(CACHE_NAME);
> testCache.put("alex", new PojoCoder("django-lover alex", "Python")); //NotSerializableException on this line
> {code}
> Actually, stack trace tells something about problem with *this* reference.
> Unfortunatelly, I don't have time to investigate deeper this issue - inner class was created just for test, normally I would store typical outer classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (ISPN-4067) Infinispan cannot put inner classes to write-behind cache
by Stanislav Ivanov (JIRA)
[ https://issues.jboss.org/browse/ISPN-4067?page=com.atlassian.jira.plugin.... ]
Stanislav Ivanov updated ISPN-4067:
-----------------------------------
Description:
Infinispan throws NotSerializableException when trying to put inner class to write-behind cache.
Here is the example:
{code:title=class which I want to store in cache (actually, it's inside the other class)|borderStyle=solid}
final class PojoCoder implements Serializable {
private static final long serialVersionUID = -6238699065180988597L;
private String name_;
private String favouriteLanguage_;
PojoCoder(String name, String favouriteLanguage) {
name_ = name;
favouriteLanguage_ = favouriteLanguage;
}
@Override
public String toString() {
return name_ + " loves " + favouriteLanguage_;
}
public String getFavouriteLanguage() {
return favouriteLanguage_;
}
public String getName() {
return name_;
}
}
{code}
{code:title=cache config|borderStyle=solid}
final EmbeddedCacheManager cacheManager = new DefaultCacheManager();
cacheManager.defineConfiguration(CACHE_NAME,
new ConfigurationBuilder()
.eviction()
.maxEntries(2)
.persistence()
.passivation(false)
.addSingleFileStore()
.location(tmpStoragePath)
.maxEntries(6)
.build());
{code}
{code:title=code that fails|borderStyle=solid}
final Cache<String, PojoCoder> testCache = cacheManager.getCache(CACHE_NAME);
testCache.put("alex", new PojoCoder("django-lover alex", "Python")); //NotSerializableException on this line
{code}
Actually, stack trace tells something about problem with *this* reference.
Unfortunatelly, I don't have time to investigate deeper this issue - inner class was created just for test, normally I would store typical outer classes.
was:
Infinispan throws NotSerializableException when trying to put inner class to write-behind cache.
Here is the example:
{code:title=class which I want to store in cache (actually, it's inside the other class)|borderStyle=solid}
final class PojoCoder implements Serializable {
private static final long serialVersionUID = -6238699065180988597L;
private String name_;
private String favouriteLanguage_;
PojoCoder(String name, String favouriteLanguage) {
name_ = name;
favouriteLanguage_ = favouriteLanguage;
}
@Override
public String toString() {
return name_ + " loves " + favouriteLanguage_;
}
public String getFavouriteLanguage() {
return favouriteLanguage_;
}
public String getName() {
return name_;
}
}
{code}
{code:title=cache config|borderStyle=solid}
final EmbeddedCacheManager cacheManager = new DefaultCacheManager();
cacheManager.defineConfiguration(CACHE_NAME,
new ConfigurationBuilder()
.eviction()
.maxEntries(2)
.persistence()
.passivation(false)
.addSingleFileStore()
.location(tmpStoragePath)
.maxEntries(6)
.build());
{code}
{code:title=code that fails|borderStyle=solid}
final Cache<String, PojoCoder> testCache = cacheManager.getCache(CACHE_NAME);
testCache.put("alex", new PojoCoder("django-lover alex", "Python")); //NotSerializableException on this line
{code}
> Infinispan cannot put inner classes to write-behind cache
> ---------------------------------------------------------
>
> Key: ISPN-4067
> URL: https://issues.jboss.org/browse/ISPN-4067
> Project: Infinispan
> Issue Type: Bug
> Components: Marshalling
> Affects Versions: 6.0.0.Final
> Environment: JDK 1.7_45
> Reporter: Stanislav Ivanov
> Assignee: Dan Berindei
> Priority: Minor
>
> Infinispan throws NotSerializableException when trying to put inner class to write-behind cache.
> Here is the example:
> {code:title=class which I want to store in cache (actually, it's inside the other class)|borderStyle=solid}
> final class PojoCoder implements Serializable {
> private static final long serialVersionUID = -6238699065180988597L;
> private String name_;
> private String favouriteLanguage_;
> PojoCoder(String name, String favouriteLanguage) {
> name_ = name;
> favouriteLanguage_ = favouriteLanguage;
> }
> @Override
> public String toString() {
> return name_ + " loves " + favouriteLanguage_;
> }
> public String getFavouriteLanguage() {
> return favouriteLanguage_;
> }
> public String getName() {
> return name_;
> }
> }
> {code}
> {code:title=cache config|borderStyle=solid}
> final EmbeddedCacheManager cacheManager = new DefaultCacheManager();
> cacheManager.defineConfiguration(CACHE_NAME,
> new ConfigurationBuilder()
> .eviction()
> .maxEntries(2)
> .persistence()
> .passivation(false)
> .addSingleFileStore()
> .location(tmpStoragePath)
> .maxEntries(6)
> .build());
> {code}
> {code:title=code that fails|borderStyle=solid}
> final Cache<String, PojoCoder> testCache = cacheManager.getCache(CACHE_NAME);
> testCache.put("alex", new PojoCoder("django-lover alex", "Python")); //NotSerializableException on this line
> {code}
> Actually, stack trace tells something about problem with *this* reference.
> Unfortunatelly, I don't have time to investigate deeper this issue - inner class was created just for test, normally I would store typical outer classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months