[JBoss JIRA] (ISPN-1485) Fail to create new file with GridFile
by dex chen (Created) (JIRA)
Fail to create new file with GridFile
-------------------------------------
Key: ISPN-1485
URL: https://issues.jboss.org/browse/ISPN-1485
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 5.0.1.FINAL
Environment: ISPN 5.0.1 Final
Linux
Java 7
Reporter: dex chen
Assignee: Manik Surtani
The current code GridFile.java fails to create any new file with the file path containing parent components.
For example, the following code will fail to create the new file:
...
GridFileSystem fs= new GridFileSystem(data, metadata);
File gridDir = fs.getFile("/test");
gridDir.mkdirs();
//The following fails to create the file
File gridFile = fs.getFile("/test/myfile.txt");
gridFile.createNewFile(); //this line always returns false.
....
The root cause of the above failure is that the method of "checkParentDirs(String path, boolean create_if_absent)"
does not handle the parent dir already exists case correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[JBoss JIRA] Created: (ISPN-1364) Allow use of CacheContainer interface for cache manager configuration
by Kevin Pollet (JIRA)
Allow use of CacheContainer interface for cache manager configuration
---------------------------------------------------------------------
Key: ISPN-1364
URL: https://issues.jboss.org/browse/ISPN-1364
Project: Infinispan
Issue Type: Enhancement
Components: CDI integration
Affects Versions: 5.0.0.FINAL, 5.0.0.CR8
Reporter: Kevin Pollet
Assignee: Kevin Pollet
Fix For: 5.1.0.BETA1, 5.1.0.FINAL
Currently the {{infinispan-cdi}} extension only works with the {{EmbeddedCacheManager}} interface. That means that a cache manager cannot be configured with a producer of type {{CacheContainer}}. The CDI extension has to be flexible and allow to use the interface {{EmbeddedCacheManager}} or {{CacheContainer}}.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[JBoss JIRA] Created: (ISPN-1411) ISPN cache is hung when try to read data from DB
by Anatoliy Bazko (JIRA)
ISPN cache is hung when try to read data from DB
------------------------------------------------
Key: ISPN-1411
URL: https://issues.jboss.org/browse/ISPN-1411
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 5.0.0.FINAL
Environment: Oracle 11.1.6.0.0
Reporter: Anatoliy Bazko
Assignee: Manik Surtani
Have a look on AbstractMarshaller.objectFromInputStream(InputStream inputStream).
When inputStream.available() returns 0 (but it doesn't mean that stream is empty) we have never ended cycle below
{code}
while ((bytesRead = inputStream.read(buf, 0, buf.length)) != -1) bytes.write(buf, 0, bytesRead);
{code}
I personally can reproduce this with Oracle DB
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[JBoss JIRA] Created: (ISPN-1430) advancedCache.addInterceptorXYZ method don't inform the caller if the operation fails
by Mircea Markus (JIRA)
advancedCache.addInterceptorXYZ method don't inform the caller if the operation fails
-------------------------------------------------------------------------------------
Key: ISPN-1430
URL: https://issues.jboss.org/browse/ISPN-1430
Project: Infinispan
Issue Type: Feature Request
Components: Core API
Reporter: Mircea Markus
Assignee: Manik Surtani
Problem:
cache.getAdvancedCache().addInterceptorAfter(new ErrorInducingInterceptor(), NonTransactionalLockingInterceptor.class);
if NonTransactionalLockingInterceptor doesn't exist in the chain then the method return silently without informing the user that it didn't succeed. This is not API friendly.
Suggested solution: throw an exception to inform the user that his attempt is not correct.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[JBoss JIRA] (ISPN-1461) Undeploying an app using Infinispan raises a bunch of nasty logs
by Emmanuel Bernard (Created) (JIRA)
Undeploying an app using Infinispan raises a bunch of nasty logs
----------------------------------------------------------------
Key: ISPN-1461
URL: https://issues.jboss.org/browse/ISPN-1461
Project: Infinispan
Issue Type: Enhancement
Affects Versions: 5.0.1.FINAL
Reporter: Emmanuel Bernard
Assignee: Manik Surtani
Priority: Minor
{code}Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tpcw] appears to have started a thread named [Listener:53848] but has failed to stop it. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tpcw] appears to have started a thread named [Thread-14] but has failed to stop it. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tpcw] appears to have started a thread named [Thread-15] but has failed to stop it. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@3d5831d9]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@6930bd05]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@7ec9c936]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@71b93941]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@1a31d63]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@7bde4f6b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@40303955]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@1e041c5f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1fe2b05e]) and a value of type [org.infinispan.context.impl.NonTxInvocationContext] (value [NonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@5ba8fbac]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@33230837]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@7ec9c936]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@40f06d1b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@1a31d63]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@688b28eb]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@40303955]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@82b91ec]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1fe2b05e]) and a value of type [org.infinispan.context.impl.NonTxInvocationContext] (value [NonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@5ba8fbac]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@64792124]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@3d5831d9]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@4c6ef604]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@7ec9c936]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@8d9a7d0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@1a31d63]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@9984d3a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@40303955]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@6df61fc1]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1fe2b05e]) and a value of type [org.infinispan.context.impl.NonTxInvocationContext] (value [NonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@5ba8fbac]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@399ef04d]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@3d5831d9]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@71b26cc8]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
100000
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Oct 17, 2011 7:01:28 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/tpcw]{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[JBoss JIRA] Created: (ISPN-689) Read past EOF caused in Lucene Directory when Lucene flushes but doesn't close the segment
by Sanne Grinovero (JIRA)
Read past EOF caused in Lucene Directory when Lucene flushes but doesn't close the segment
------------------------------------------------------------------------------------------
Key: ISPN-689
URL: https://jira.jboss.org/browse/ISPN-689
Project: Infinispan
Issue Type: Bug
Components: Lucene Directory
Affects Versions: 4.2.0.ALPHA2, 4.1.0.Final
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.2.0.BETA1, 4.2.0.Final, 5.0.0.Final
While this is not the default access scenario performed by Lucene it's possible in some branches to flush the segment and be able to read it before the close.
I could reproduce the following stacktrace in high load / huge sized index but not in a unit test; disabling the batching started between .flush() and .close() seems to resolve the issue; also this batch seems totally useless as I couldn't find any chance in performance when disabling it.
java.io.IOException: Read past EOF: Chunk value could not be found for key _ni.fdt|4|issues
at org.infinispan.lucene.InfinispanIndexInput.setBufferToCurrentChunk(InfinispanIndexInput.java:138)
at org.infinispan.lucene.InfinispanIndexInput.nextChunk(InfinispanIndexInput.java:131)
at org.infinispan.lucene.InfinispanIndexInput.readBytes(InfinispanIndexInput.java:96)
at org.apache.lucene.store.IndexInput.readBytes(IndexInput.java:61)
at org.apache.lucene.index.CompoundFileWriter.copyFile(CompoundFileWriter.java:228)
at org.apache.lucene.index.CompoundFileWriter.close(CompoundFileWriter.java:184)
at org.apache.lucene.index.IndexWriter.flushDocStores(IndexWriter.java:2342)
at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4359)
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4264)
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4255)
at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:4133)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:4206)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:4179)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month