[JBoss JIRA] (ISPN-9312) Better API for registering remote listeners
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-9312:
--------------------------------------
Summary: Better API for registering remote listeners
Key: ISPN-9312
URL: https://issues.jboss.org/browse/ISPN-9312
Project: Infinispan
Issue Type: Enhancement
Components: Listeners, Remote Protocols
Reporter: Galder Zamarreño
Annotation based approach is cumbersome to use and some parameters cannot be defined at runtime. ISPN-9151 is a stop-gap solution to make those parameters more dynamic, but a better API is needed.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 6 months
[JBoss JIRA] (ISPN-9306) Unguarded lazy initialization of SQL statements in JDBC CacheStore
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-9306?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero commented on ISPN-9306:
---------------------------------------
Example, taking some code from {{AbstractTableManager}}:
{code:java}
protected String deleteRowSql;
public String getDeleteRowSql() {
if (deleteRowSql == null) {
deleteRowSql = String.format("DELETE FROM %s WHERE %s = ?", getTableName(), config.idColumnName());
}
return deleteRowSql;
}
{code}
It's not strictly wrong - especially it might seem to work fine in single threaded tests or servers with a limited amount of cores, but it becomes a huge red flag for the kind of situations Infinispan is used for.
Assuming I understand correctly, the method {{getDeleteRowSql()}} is invoked by multiple independent threads sharing the same instance of the table manager, which makes it troublesome.
The simplest solution is to either mark the method as {{synchronized}} or the field as {{volatile}} yet both could have other annoying effects on performance optimisations; best would be to initialize all such things into a final field, but that requires a bit of refactoring to ensure you have the table names, column names, etc.. during the contractor invocation.
> Unguarded lazy initialization of SQL statements in JDBC CacheStore
> ------------------------------------------------------------------
>
> Key: ISPN-9306
> URL: https://issues.jboss.org/browse/ISPN-9306
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.3.0.CR1
> Reporter: Sanne Grinovero
> Assignee: Ryan Emerson
>
> Several fields in {{org.infinispan.persistence.jdbc.table.management.AbstractTableManager}} are lazily initialized by its child implementations, yet without any barrier.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 6 months
[JBoss JIRA] (ISPN-9311) HotRod/Rest interoperability not working for protobuf caches with non string keys
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-9311:
---------------------------------------
Summary: HotRod/Rest interoperability not working for protobuf caches with non string keys
Key: ISPN-9311
URL: https://issues.jboss.org/browse/ISPN-9311
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 9.3.0.CR1, 9.2.5.Final
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
When requesting an entry via REST for a cache storing protobuf, the request header "Key-Content-Type" is ignored and the response is 404 since all keys are assumed String
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 6 months
[JBoss JIRA] (ISPN-9310) HotRod/Rest interoperability not working for protobuf caches with non string keys
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-9310:
---------------------------------------
Summary: HotRod/Rest interoperability not working for protobuf caches with non string keys
Key: ISPN-9310
URL: https://issues.jboss.org/browse/ISPN-9310
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 9.3.0.CR1, 9.2.5.Final
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
When requesting an entry via REST for a cache storing protobuf, the request header "Key-Content-Type" is ignored and the response is 404 since all keys are assumed String
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 6 months
[JBoss JIRA] (ISPN-9309) HotRod/Rest interoperability not working for protobuf caches with non string keys
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-9309:
---------------------------------------
Summary: HotRod/Rest interoperability not working for protobuf caches with non string keys
Key: ISPN-9309
URL: https://issues.jboss.org/browse/ISPN-9309
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 9.2.5.Final, 9.3.0.CR1
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
When requesting an entry via REST for a cache storing protobuf, the request header "Key-Content-Type" is ignored and the response is 404 since all keys are assumed String
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 6 months