[JBoss JIRA] (ISPN-7842) Declarative indexed entity mapping
by Jakub Senko (Jira)
[ https://issues.redhat.com/browse/ISPN-7842?page=com.atlassian.jira.plugin... ]
Jakub Senko reassigned ISPN-7842:
---------------------------------
Assignee: Tristan Tarrant (was: Jakub Senko)
> Declarative indexed entity mapping
> ----------------------------------
>
> Key: ISPN-7842
> URL: https://issues.redhat.com/browse/ISPN-7842
> Project: Infinispan
> Issue Type: Enhancement
> Components: Configuration, Embedded Querying
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Minor
>
> We need a way to list annotation-less indexed entities in the infinispan XML.
> The
> {noformat}
> <indexed-entities>
> {noformat}
> element schema will need to be extended as follows:
> {code:xml}
> <indexed-entities>
> <!-- annotated entity -->
> <indexed-entity>org.infinispan.query.queries.faceting.Car</indexed-entity>
> <!-- non-annotated entity -->
> <indexed-entity-mapping>
> <!-- the FQN of the class to index -->
> <class>my.domain.model.Author</class>
> <!-- optional -->
> <spatial name="place" mode="HASH"/>
> <!-- list of indexed properties -->
> <property name="name" type="method">
> <field store="true" index="true" analyze="true" norms="true" term-vector="yes" boost="0.5"/>
> </property>
> <property name="title" type="method">
> <field store="true" index="true" analyze="true" norms="true" term-vector="yes" boost="0.5" analyzer="titleanalyzer"/>
> </property>
> <property type="method" name="birthdate">
> <field store="true" index="true" analyze="true" norms="true" term-vector="yes" boost="0.5"/>
> <date-bridge resolution="DAY"/>
> </property>
>
> <property type="method" name="city">
> <spatial name="name" store="true" boost="0.5" spatial-mode="RANGE" />
> </property>
> </indexed-entity-mapping>
> </indexed-entities>
>
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (ISPN-12056) Some tests are failing on windows when they try to delete the SingleFileStore
by Gustavo Lira e Silva (Jira)
[ https://issues.redhat.com/browse/ISPN-12056?page=com.atlassian.jira.plugi... ]
Gustavo Lira e Silva updated ISPN-12056:
----------------------------------------
Status: Open (was: New)
> Some tests are failing on windows when they try to delete the SingleFileStore
> -----------------------------------------------------------------------------
>
> Key: ISPN-12056
> URL: https://issues.redhat.com/browse/ISPN-12056
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
>
> Some tests are failing on windows with the same reason, see some examples bellow:
> {noformat}
> java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\ExpirationSingleFileStoreListenerFunctionalTest\0\defaultcache.dat owner=null permissions=[]
> {noformat}
> {noformat}
> Java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\AsyncStoreWithoutEvictionFunctionalTest\cache.dat owner=null permissions=[]
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1046)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1022)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1011)
> at org.infinispan.persistence.support.AsyncStoreWithoutEvictionFunctionalTest.clearTempDir(AsyncStoreWithoutEvictionFunctionalTest.java:39)
> {noformat}
> {noformat}
> java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\ExpirationSingleFileStoreListenerFunctionalTest\0\defaultcache.dat owner=null permissions=[]
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1046)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1022)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1011)
> at org.infinispan.expiration.impl.ExpirationSingleFileStoreListenerFunctionalTest.clearTempDir(ExpirationSingleFileStoreListenerFunctionalTest.java:46)
> {noformat}
> First of all we should change the old {{file.delete()}} which only return a boolean for {{Files.delete(file)}} which return an exception with a valuable information in case of the file couldn't be deleted.
> The real reason for the file couldn't be delete on windows is
> {noformat}
> "the file is being used by another process"
> {noformat}
> The code bellow into {{org.infinispan.commons.util.Util#recursiveDelete}} solves the problem:
> {noformat}
> Files.walk(f.toPath())
> .sorted(Comparator.reverseOrder())
> .map(Path::toFile)
> .forEach(File::delete);
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (ISPN-12056) Some tests are failing on windows when they try to delete the SingleFileStore
by Gustavo Lira e Silva (Jira)
[ https://issues.redhat.com/browse/ISPN-12056?page=com.atlassian.jira.plugi... ]
Work on ISPN-12056 started by Gustavo Lira e Silva.
---------------------------------------------------
> Some tests are failing on windows when they try to delete the SingleFileStore
> -----------------------------------------------------------------------------
>
> Key: ISPN-12056
> URL: https://issues.redhat.com/browse/ISPN-12056
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
>
> Some tests are failing on windows with the same reason, see some examples bellow:
> {noformat}
> java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\ExpirationSingleFileStoreListenerFunctionalTest\0\defaultcache.dat owner=null permissions=[]
> {noformat}
> {noformat}
> Java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\AsyncStoreWithoutEvictionFunctionalTest\cache.dat owner=null permissions=[]
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1046)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1022)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1011)
> at org.infinispan.persistence.support.AsyncStoreWithoutEvictionFunctionalTest.clearTempDir(AsyncStoreWithoutEvictionFunctionalTest.java:39)
> {noformat}
> {noformat}
> java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\ExpirationSingleFileStoreListenerFunctionalTest\0\defaultcache.dat owner=null permissions=[]
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1046)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1022)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1011)
> at org.infinispan.expiration.impl.ExpirationSingleFileStoreListenerFunctionalTest.clearTempDir(ExpirationSingleFileStoreListenerFunctionalTest.java:46)
> {noformat}
> First of all we should change the old {{file.delete()}} which only return a boolean for {{Files.delete(file)}} which return an exception with a valuable information in case of the file couldn't be deleted.
> The real reason for the file couldn't be delete on windows is
> {noformat}
> "the file is being used by another process"
> {noformat}
> The code bellow into {{org.infinispan.commons.util.Util#recursiveDelete}} solves the problem:
> {noformat}
> Files.walk(f.toPath())
> .sorted(Comparator.reverseOrder())
> .map(Path::toFile)
> .forEach(File::delete);
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (ISPN-12056) Some tests are failing on windows when they try to delete the SingleFileStore
by Gustavo Lira e Silva (Jira)
[ https://issues.redhat.com/browse/ISPN-12056?page=com.atlassian.jira.plugi... ]
Gustavo Lira e Silva updated ISPN-12056:
----------------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/8506
> Some tests are failing on windows when they try to delete the SingleFileStore
> -----------------------------------------------------------------------------
>
> Key: ISPN-12056
> URL: https://issues.redhat.com/browse/ISPN-12056
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
>
> Some tests are failing on windows with the same reason, see some examples bellow:
> {noformat}
> java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\ExpirationSingleFileStoreListenerFunctionalTest\0\defaultcache.dat owner=null permissions=[]
> {noformat}
> {noformat}
> Java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\AsyncStoreWithoutEvictionFunctionalTest\cache.dat owner=null permissions=[]
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1046)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1022)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1011)
> at org.infinispan.persistence.support.AsyncStoreWithoutEvictionFunctionalTest.clearTempDir(AsyncStoreWithoutEvictionFunctionalTest.java:39)
> {noformat}
> {noformat}
> java.lang.IllegalStateException: Cannot delete C:\j\workspace\jdg-8.0.x-jdg-func-ispn-testsuite-win-openjdk\4964bfc5\infinispan\core\target\infinispanTempFiles\ExpirationSingleFileStoreListenerFunctionalTest\0\defaultcache.dat owner=null permissions=[]
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1046)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveDelete(Util.java:1032)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1022)
> at org.infinispan.commons.util.Util.recursiveFileRemove(Util.java:1011)
> at org.infinispan.expiration.impl.ExpirationSingleFileStoreListenerFunctionalTest.clearTempDir(ExpirationSingleFileStoreListenerFunctionalTest.java:46)
> {noformat}
> First of all we should change the old {{file.delete()}} which only return a boolean for {{Files.delete(file)}} which return an exception with a valuable information in case of the file couldn't be deleted.
> The real reason for the file couldn't be delete on windows is
> {noformat}
> "the file is being used by another process"
> {noformat}
> The code bellow into {{org.infinispan.commons.util.Util#recursiveDelete}} solves the problem:
> {noformat}
> Files.walk(f.toPath())
> .sorted(Comparator.reverseOrder())
> .map(Path::toFile)
> .forEach(File::delete);
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months