[JBoss JIRA] (ISPN-8427) Support for non-String keys in the rest server
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-8427?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-8427:
------------------------------------
Description:
The rest server assumes keys are always String, causing limited interoperability between remote endpoints.
When a cache is written via Hot Rod, by default keys will be stored as marshalled {{byte[]}} via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
was:
The rest server assumes keys are always String, causing limited interoperability between remote endpoints.
When a cache is written via Hot Rod, by default keys will be stored as marshalled {{java.lang.String}} via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
> Support for non-String keys in the rest server
> ----------------------------------------------
>
> Key: ISPN-8427
> URL: https://issues.jboss.org/browse/ISPN-8427
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.2.0.Alpha1
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> The rest server assumes keys are always String, causing limited interoperability between remote endpoints.
> When a cache is written via Hot Rod, by default keys will be stored as marshalled {{byte[]}} via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
> The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
> With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ISPN-8427) Support for non-String keys in the rest server
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-8427?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-8427:
------------------------------------
Description:
The rest server assumes keys are always String, causing limited interoperability between remote endpoints.
When a cache is written via Hot Rod, by default keys will be stored as {{byte[]}} produced via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
was:
The rest server assumes keys are always String, causing limited interoperability between remote endpoints.
When a cache is written via Hot Rod, by default keys will be stored as marshalled {{byte[]}} via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
> Support for non-String keys in the rest server
> ----------------------------------------------
>
> Key: ISPN-8427
> URL: https://issues.jboss.org/browse/ISPN-8427
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.2.0.Alpha1
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> The rest server assumes keys are always String, causing limited interoperability between remote endpoints.
> When a cache is written via Hot Rod, by default keys will be stored as {{byte[]}} produced via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
> The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
> With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ISPN-8427) Support for non-String keys in the rest server
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-8427:
---------------------------------------
Summary: Support for non-String keys in the rest server
Key: ISPN-8427
URL: https://issues.jboss.org/browse/ISPN-8427
Project: Infinispan
Issue Type: Enhancement
Components: Server
Affects Versions: 9.2.0.Alpha1
Reporter: Gustavo Fernandes
The rest server assumes keys are always String, causing interoperability between remote endpoints limited.
When a cache is written via Hot Rod, by default keys will be stored as marshalled {{java.lang.String}} via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ISPN-8427) Support for non-String keys in the rest server
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-8427?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes reassigned ISPN-8427:
---------------------------------------
Assignee: Gustavo Fernandes
> Support for non-String keys in the rest server
> ----------------------------------------------
>
> Key: ISPN-8427
> URL: https://issues.jboss.org/browse/ISPN-8427
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.2.0.Alpha1
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> The rest server assumes keys are always String, causing interoperability between remote endpoints limited.
> When a cache is written via Hot Rod, by default keys will be stored as marshalled {{java.lang.String}} via {{JBossMarshaller}} (the default marshaller), or via UTF-8 in case the {{UT8Marshaller}} is chosen.
> The Rest server should accept keys in different formats than String, using an encoding for byte[] values like Base64, and pass in an special header with the key media type so that the server can use it.
> With this capability, compat mode could be avoided when writing from Hot Rod and reading from Rest and vice versa
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ISPN-8424) Cluster does not recover after killing a pod on OpenShift
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-8424?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-8424:
-----------------------------------
Attachment: datagrid-3-kg593.log
datagrid-3-tzh6h.log
> Cluster does not recover after killing a pod on OpenShift
> ---------------------------------------------------------
>
> Key: ISPN-8424
> URL: https://issues.jboss.org/browse/ISPN-8424
> Project: Infinispan
> Issue Type: Bug
> Components: Core, JMX, reporting and management
> Affects Versions: 9.1.0.Final
> Reporter: Galder Zamarreño
> Attachments: datagrid-3-kg593.log, datagrid-3-tzh6h.log
>
>
> To replicate issue, follow instructions in [here|https://github.com/infinispan-demos/streaming-data-kubernetes/blob/m...] without changing the code.
> Once you have injector working and you connect from the dashboard, do the following:
> {code}
> $ docker ps
> ...
> // find id for one of the infinispan server nodes
> ...
> $ docker rm -f <container_id>
> {code}
> The container will be killed but the other nodes do not manage to recover the cluster and install the new formation. It seems to enter an endless loop... See attached logs.
> I suspect the cluster stats requests that appear in the logs come from the management console.
> I don't yet have TRACE logs but I'll try to replicate with TRACE later.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ISPN-8424) Cluster does not recover after killing a pod on OpenShift
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-8424:
--------------------------------------
Summary: Cluster does not recover after killing a pod on OpenShift
Key: ISPN-8424
URL: https://issues.jboss.org/browse/ISPN-8424
Project: Infinispan
Issue Type: Bug
Components: Core, JMX, reporting and management
Affects Versions: 9.1.0.Final
Reporter: Galder Zamarreño
To replicate issue, follow instructions in [here|https://github.com/infinispan-demos/streaming-data-kubernetes/blob/m...] without changing the code.
Once you have injector working and you connect from the dashboard, do the following:
{code}
$ docker ps
...
// find id for one of the infinispan server nodes
...
$ docker rm -f <container_id>
{code}
The container will be killed but the other nodes do not manage to recover the cluster and install the new formation. It seems to enter an endless loop... See attached logs.
I suspect the cluster stats requests that appear in the logs come from the management console.
I don't yet have TRACE logs but I'll try to replicate with TRACE later.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ISPN-8423) Remove metadata size integer in cases where we know the size
by William Burns (JIRA)
William Burns created ISPN-8423:
-----------------------------------
Summary: Remove metadata size integer in cases where we know the size
Key: ISPN-8423
URL: https://issues.jboss.org/browse/ISPN-8423
Project: Infinispan
Issue Type: Sub-task
Reporter: William Burns
Assignee: William Burns
We store a type with the other metadata. This tells us whether the entry is IMMORTAL, MORTAL, TRANSIENT etc. In the case of known types we already know how large the metadata is. There is no reason to write an int stating this. This can remove 4 bytes in a lot of cases, especially now that rest uses a standard metadata.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months