[JBoss JIRA] (ISPN-10650) Expiration should not be replicated cross site
by Will Burns (Jira)
[ https://issues.jboss.org/browse/ISPN-10650?page=com.atlassian.jira.plugin... ]
Will Burns updated ISPN-10650:
------------------------------
Fix Version/s: 10.0.0.CR3
9.4.17.Final
> Expiration should not be replicated cross site
> ----------------------------------------------
>
> Key: ISPN-10650
> URL: https://issues.jboss.org/browse/ISPN-10650
> Project: Infinispan
> Issue Type: Bug
> Components: Cross-Site Replication, Expiration
> Affects Versions: 9.4.16.Final, 10.0.0.CR2
> Reporter: Will Burns
> Assignee: Will Burns
> Priority: Major
> Fix For: 10.0.0.CR3, 9.4.17.Final
>
>
> There is no reason currently to replicate expiration commands across site.
> Lifespan will work just fine without without replicating as the entry is expired on either side properly, irrespective of system clocks.
> However max idle doesn't support the given semantics with xsite. We currently only confirm from other nodes in the same cluster for max idle before removing. It would be extremely costly to query all the cross sites to see if they have a read on the same entry before expiring. Also this requires having system clocks somewhat close in time, which can be even more problematic with clusters in disparate locations. We need to document that this doesn't work as well.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10651) jars added to the server/lib folder are not adding classes to classpath
by Gustavo Lira e Silva (Jira)
[ https://issues.jboss.org/browse/ISPN-10651?page=com.atlassian.jira.plugin... ]
Gustavo Lira e Silva updated ISPN-10651:
----------------------------------------
Attachment: ispn10651.zip
> jars added to the server/lib folder are not adding classes to classpath
> -----------------------------------------------------------------------
>
> Key: ISPN-10651
> URL: https://issues.jboss.org/browse/ISPN-10651
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
> Attachments: h2-1.4.199.jar, ispn10651.zip
>
>
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive ClassNotFoundException: org.h2.Driver
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10651) jars added to the server/lib folder are not adding classes to classpath
by Gustavo Lira e Silva (Jira)
[ https://issues.jboss.org/browse/ISPN-10651?page=com.atlassian.jira.plugin... ]
Gustavo Lira e Silva updated ISPN-10651:
----------------------------------------
Attachment: h2-1.4.199.jar
> jars added to the server/lib folder are not adding classes to classpath
> -----------------------------------------------------------------------
>
> Key: ISPN-10651
> URL: https://issues.jboss.org/browse/ISPN-10651
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
> Attachments: h2-1.4.199.jar, ispn10651.zip
>
>
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive ClassNotFoundException: org.h2.Driver
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10651) jars added to the server/lib folder are not adding classes to classpath
by Gustavo Lira e Silva (Jira)
[ https://issues.jboss.org/browse/ISPN-10651?page=com.atlassian.jira.plugin... ]
Gustavo Lira e Silva updated ISPN-10651:
----------------------------------------
Steps to Reproduce:
download ispn-10651.zip
Copy h2-1.4.199.jar to ${INFINISPAN_HOME}/server/lib
Start infinispan server
Run ISPN10651.java
was:
Clone https://github.com/gustavolira/ispn-10646.git or download ispn-10646.zip
Copy h2-1.4.199.jar to ${INFINISPAN_HOME}/server/lib
Start infinispan server
Run ISPN10646.java
> jars added to the server/lib folder are not adding classes to classpath
> -----------------------------------------------------------------------
>
> Key: ISPN-10651
> URL: https://issues.jboss.org/browse/ISPN-10651
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
> Attachments: h2-1.4.199.jar, ispn10651.zip
>
>
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive ClassNotFoundException: org.h2.Driver
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10651) jars added to the server/lib folder are not adding classes to classpath
by Gustavo Lira e Silva (Jira)
Gustavo Lira e Silva created ISPN-10651:
-------------------------------------------
Summary: jars added to the server/lib folder are not adding classes to classpath
Key: ISPN-10651
URL: https://issues.jboss.org/browse/ISPN-10651
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 10.0.0.CR2
Reporter: Gustavo Lira e Silva
Assignee: Gustavo Lira e Silva
{code:java}
GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
ConfigurationBuilder builder = new ConfigurationBuilder();
Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
.table()
.dropOnExit(true)
.createOnStart(true)
.tableNamePrefix("ISPN_STRING_TABLE")
.idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
.dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
.timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
.connectionPool()
.connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
.username("sa")
.password("sa")
.driverClass("org.h2.Driver")
.build();
RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
cache.put("k1", "v1");
System.out.println(cache.get("k1"));
{code}
If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive ClassNotFoundException: org.h2.Driver
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10646) Custom jars in server/lib is not working
by Gustavo Lira e Silva (Jira)
[ https://issues.jboss.org/browse/ISPN-10646?page=com.atlassian.jira.plugin... ]
Gustavo Lira e Silva deleted ISPN-10646:
----------------------------------------
> Custom jars in server/lib is not working
> -----------------------------------------
>
> Key: ISPN-10646
> URL: https://issues.jboss.org/browse/ISPN-10646
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Lira e Silva
> Assignee: Tristan Tarrant
> Priority: Major
>
> Custom jars added to the server classpath using server/lib folder are not working properly
> Example:
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> DefaultCacheManager cacheManager = new DefaultCacheManager(globalConfigurationBuilder.build(), build, true);
> Cache<String, String> cache = cacheManager.getCache();
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive {{ClassNotFoundException: org.h2.Driver}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10646) Custom jars in server/lib is not working
by Gustavo Lira e Silva (Jira)
[ https://issues.jboss.org/browse/ISPN-10646?page=com.atlassian.jira.plugin... ]
Gustavo Lira e Silva reassigned ISPN-10646:
-------------------------------------------
Assignee: Tristan Tarrant (was: Gustavo Lira e Silva)
> Custom jars in server/lib is not working
> -----------------------------------------
>
> Key: ISPN-10646
> URL: https://issues.jboss.org/browse/ISPN-10646
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Tristan Tarrant
> Priority: Major
> Attachments: h2-1.4.199.jar, ispn-10646.zip
>
>
> Custom jars added to the server classpath using server/lib folder are not working properly
> Example:
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> DefaultCacheManager cacheManager = new DefaultCacheManager(globalConfigurationBuilder.build(), build, true);
> Cache<String, String> cache = cacheManager.getCache();
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive {{ClassNotFoundException: org.h2.Driver}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10646) Custom jars in server/lib is not working
by Gustavo Lira e Silva (Jira)
[ https://issues.jboss.org/browse/ISPN-10646?page=com.atlassian.jira.plugin... ]
Gustavo Lira e Silva reassigned ISPN-10646:
-------------------------------------------
Assignee: Gustavo Lira e Silva
> Custom jars in server/lib is not working
> -----------------------------------------
>
> Key: ISPN-10646
> URL: https://issues.jboss.org/browse/ISPN-10646
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Gustavo Lira e Silva
> Priority: Major
> Attachments: h2-1.4.199.jar, ispn-10646.zip
>
>
> Custom jars added to the server classpath using server/lib folder are not working properly
> Example:
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> DefaultCacheManager cacheManager = new DefaultCacheManager(globalConfigurationBuilder.build(), build, true);
> Cache<String, String> cache = cacheManager.getCache();
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive {{ClassNotFoundException: org.h2.Driver}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-10650) Expiration should not be replicated cross site
by Will Burns (Jira)
[ https://issues.jboss.org/browse/ISPN-10650?page=com.atlassian.jira.plugin... ]
Will Burns updated ISPN-10650:
------------------------------
Status: Open (was: New)
> Expiration should not be replicated cross site
> ----------------------------------------------
>
> Key: ISPN-10650
> URL: https://issues.jboss.org/browse/ISPN-10650
> Project: Infinispan
> Issue Type: Bug
> Components: Cross-Site Replication, Expiration
> Affects Versions: 9.4.16.Final, 10.0.0.CR2
> Reporter: Will Burns
> Assignee: Will Burns
> Priority: Major
>
> There is no reason currently to replicate expiration commands across site.
> Lifespan will work just fine without without replicating as the entry is expired on either side properly, irrespective of system clocks.
> However max idle doesn't support the given semantics with xsite. We currently only confirm from other nodes in the same cluster for max idle before removing. It would be extremely costly to query all the cross sites to see if they have a read on the same entry before expiring. Also this requires having system clocks somewhat close in time, which can be even more problematic with clusters in disparate locations. We need to document that this doesn't work as well.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years