[Red Hat JIRA] (ISPN-12626) Document @ProtoAdaptor for marshalling of external classes
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-12626?page=com.atlassian.jira.plugi... ]
Ryan Emerson commented on ISPN-12626:
-------------------------------------
[~dnaro27] Yep 12.x only.
> Document @ProtoAdaptor for marshalling of external classes
> ----------------------------------------------------------
>
> Key: ISPN-12626
> URL: https://issues.redhat.com/browse/ISPN-12626
> Project: Infinispan
> Issue Type: Task
> Components: Documentation
> Affects Versions: 12.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Donald Naro
> Priority: Major
> Fix For: 12.0.0.Final
>
>
> Protostream 4.4.0.Alpha4 added support for automatically generating marshallers for external classes via the {{@ProtoAdaptor}} field. This greatly simplifies how a user can marshall third party classes, as it's no longer necessary to implement the {{MessageMarshaller}} interface and explicitly create a {{SerializationContextInitializer}} implementation.
> Process for using {{@ProtoAdaptor}}
> 1. Create an adaptor class and add the {{@ProtoAdaptor}} annotation
> {code:java}
> @ProtoAdapter(UUID.class)
> public class UUIDAdapter {
> @ProtoFactory
> UUID create(Long mostSigBitsFixed, Long leastSigBitsFixed) {
> return new UUID(mostSigBitsFixed, leastSigBitsFixed);
> }
> @ProtoField(number = 1, type = Type.FIXED64, defaultValue = "0")
> Long getMostSigBitsFixed(UUID uuid) {
> return uuid.getMostSignificantBits();
> }
> @ProtoField(number = 2, type = Type.FIXED64, defaultValue = "0")
> Long getLeastSigBitsFixed(UUID uuid) {
> return uuid.getLeastSignificantBits();
> }
> }
> {code}
> 2. Register {{UUIDAdapter}} with your {{SerialiazationContextInitializer}} interface (LibraryInitializer in the docs examples).
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12626) Document @ProtoAdaptor for marshalling of external classes
by Donald Naro (Jira)
[ https://issues.redhat.com/browse/ISPN-12626?page=com.atlassian.jira.plugi... ]
Donald Naro commented on ISPN-12626:
------------------------------------
[~ryanemerson] This is for 12 only, right? No backport to 11.0.x?
> Document @ProtoAdaptor for marshalling of external classes
> ----------------------------------------------------------
>
> Key: ISPN-12626
> URL: https://issues.redhat.com/browse/ISPN-12626
> Project: Infinispan
> Issue Type: Task
> Components: Documentation
> Affects Versions: 12.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Donald Naro
> Priority: Major
> Fix For: 12.0.0.Final
>
>
> Protostream 4.4.0.Alpha4 added support for automatically generating marshallers for external classes via the {{@ProtoAdaptor}} field. This greatly simplifies how a user can marshall third party classes, as it's no longer necessary to implement the {{MessageMarshaller}} interface and explicitly create a {{SerializationContextInitializer}} implementation.
> Process for using {{@ProtoAdaptor}}
> 1. Create an adaptor class and add the {{@ProtoAdaptor}} annotation
> {code:java}
> @ProtoAdapter(UUID.class)
> public class UUIDAdapter {
> @ProtoFactory
> UUID create(Long mostSigBitsFixed, Long leastSigBitsFixed) {
> return new UUID(mostSigBitsFixed, leastSigBitsFixed);
> }
> @ProtoField(number = 1, type = Type.FIXED64, defaultValue = "0")
> Long getMostSigBitsFixed(UUID uuid) {
> return uuid.getMostSignificantBits();
> }
> @ProtoField(number = 2, type = Type.FIXED64, defaultValue = "0")
> Long getLeastSigBitsFixed(UUID uuid) {
> return uuid.getLeastSignificantBits();
> }
> }
> {code}
> 2. Register {{UUIDAdapter}} with your {{SerialiazationContextInitializer}} interface (LibraryInitializer in the docs examples).
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12626) Document @ProtoAdaptor for marshalling of external classes
by Donald Naro (Jira)
[ https://issues.redhat.com/browse/ISPN-12626?page=com.atlassian.jira.plugi... ]
Donald Naro updated ISPN-12626:
-------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/8984
Status: Pull Request Sent (was: Open)
> Document @ProtoAdaptor for marshalling of external classes
> ----------------------------------------------------------
>
> Key: ISPN-12626
> URL: https://issues.redhat.com/browse/ISPN-12626
> Project: Infinispan
> Issue Type: Task
> Components: Documentation
> Affects Versions: 12.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Donald Naro
> Priority: Major
> Fix For: 12.0.0.Final
>
>
> Protostream 4.4.0.Alpha4 added support for automatically generating marshallers for external classes via the {{@ProtoAdaptor}} field. This greatly simplifies how a user can marshall third party classes, as it's no longer necessary to implement the {{MessageMarshaller}} interface and explicitly create a {{SerializationContextInitializer}} implementation.
> Process for using {{@ProtoAdaptor}}
> 1. Create an adaptor class and add the {{@ProtoAdaptor}} annotation
> {code:java}
> @ProtoAdapter(UUID.class)
> public class UUIDAdapter {
> @ProtoFactory
> UUID create(Long mostSigBitsFixed, Long leastSigBitsFixed) {
> return new UUID(mostSigBitsFixed, leastSigBitsFixed);
> }
> @ProtoField(number = 1, type = Type.FIXED64, defaultValue = "0")
> Long getMostSigBitsFixed(UUID uuid) {
> return uuid.getMostSignificantBits();
> }
> @ProtoField(number = 2, type = Type.FIXED64, defaultValue = "0")
> Long getLeastSigBitsFixed(UUID uuid) {
> return uuid.getLeastSignificantBits();
> }
> }
> {code}
> 2. Register {{UUIDAdapter}} with your {{SerialiazationContextInitializer}} interface (LibraryInitializer in the docs examples).
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12626) Document @ProtoAdaptor for marshalling of external classes
by Donald Naro (Jira)
[ https://issues.redhat.com/browse/ISPN-12626?page=com.atlassian.jira.plugi... ]
Donald Naro updated ISPN-12626:
-------------------------------
Status: Open (was: New)
> Document @ProtoAdaptor for marshalling of external classes
> ----------------------------------------------------------
>
> Key: ISPN-12626
> URL: https://issues.redhat.com/browse/ISPN-12626
> Project: Infinispan
> Issue Type: Task
> Components: Documentation
> Affects Versions: 12.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Donald Naro
> Priority: Major
> Fix For: 12.0.0.Final
>
>
> Protostream 4.4.0.Alpha4 added support for automatically generating marshallers for external classes via the {{@ProtoAdaptor}} field. This greatly simplifies how a user can marshall third party classes, as it's no longer necessary to implement the {{MessageMarshaller}} interface and explicitly create a {{SerializationContextInitializer}} implementation.
> Process for using {{@ProtoAdaptor}}
> 1. Create an adaptor class and add the {{@ProtoAdaptor}} annotation
> {code:java}
> @ProtoAdapter(UUID.class)
> public class UUIDAdapter {
> @ProtoFactory
> UUID create(Long mostSigBitsFixed, Long leastSigBitsFixed) {
> return new UUID(mostSigBitsFixed, leastSigBitsFixed);
> }
> @ProtoField(number = 1, type = Type.FIXED64, defaultValue = "0")
> Long getMostSigBitsFixed(UUID uuid) {
> return uuid.getMostSignificantBits();
> }
> @ProtoField(number = 2, type = Type.FIXED64, defaultValue = "0")
> Long getLeastSigBitsFixed(UUID uuid) {
> return uuid.getLeastSignificantBits();
> }
> }
> {code}
> 2. Register {{UUIDAdapter}} with your {{SerialiazationContextInitializer}} interface (LibraryInitializer in the docs examples).
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12629) XSD "segmented" description is incorrect
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-12629?page=com.atlassian.jira.plugi... ]
Pedro Ruivo updated ISPN-12629:
-------------------------------
Affects Version/s: 11.0.9.Final
12.0.0.CR1
> XSD "segmented" description is incorrect
> ----------------------------------------
>
> Key: ISPN-12629
> URL: https://issues.redhat.com/browse/ISPN-12629
> Project: Infinispan
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 12.0.0.CR1, 11.0.9.Final
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Priority: Major
>
> {{with the "hash.numSegments" property defining the number of segments}}
> The description above is wrong. The number of segments for a segmented cache store is equal to the number of segments defined in the cache. Users are trying to define {{.addProperty("hash.numSegments", "8")}} which won't work.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12630) SIFS does not set the seqId when loading index from disk
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12630:
----------------------------------
Summary: SIFS does not set the seqId when loading index from disk
Key: ISPN-12630
URL: https://issues.redhat.com/browse/ISPN-12630
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 12.0.0.CR1
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
{{seqId}} is used to find which key's value is the most recent in the file. However, if the index is loaded from the disk, it is never set and the new entries are stored from {{seqId=1}}.
Reads/Writes aren't affected but iteration relies on this to discard old values. It has the side effect of (possibly) returning multiple values for the same key.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12629) XSD "segmented" description is incorrect
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12629:
----------------------------------
Summary: XSD "segmented" description is incorrect
Key: ISPN-12629
URL: https://issues.redhat.com/browse/ISPN-12629
Project: Infinispan
Issue Type: Bug
Components: Documentation
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
{{with the "hash.numSegments" property defining the number of segments}}
The description above is wrong. The number of segments for a segmented cache store is equal to the number of segments defined in the cache. Users are trying to define {{.addProperty("hash.numSegments", "8")}} which won't work.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12628) All REST response descriptions should contain possible HTTP response codes
by Dmitry Volodin (Jira)
Dmitry Volodin created ISPN-12628:
-------------------------------------
Summary: All REST response descriptions should contain possible HTTP response codes
Key: ISPN-12628
URL: https://issues.redhat.com/browse/ISPN-12628
Project: Infinispan
Issue Type: Task
Components: Documentation
Affects Versions: 12.0.0.CR1
Reporter: Dmitry Volodin
"Using the Infinispan REST Server" documentation sections should be reviewed and all possible HTTP response codes need to be added.
For example, the following sections are not described
* 2.4.4. Checking REST Endpoint Availability
* 2.7.3. Creating/modifying a logger
* TBD
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12539) Server image doesn't accept numeric characters into password env
by Matthias Streidel (Jira)
[ https://issues.redhat.com/browse/ISPN-12539?page=com.atlassian.jira.plugi... ]
Matthias Streidel commented on ISPN-12539:
------------------------------------------
I just ran into the same problem. A quick fix instead of handling the password could be to info the user to use an alphanumeric or alphabetical password only on the commandline - it is better to fix this though...
> Server image doesn't accept numeric characters into password env
> ----------------------------------------------------------------
>
> Key: ISPN-12539
> URL: https://issues.redhat.com/browse/ISPN-12539
> Project: Infinispan
> Issue Type: Bug
> Components: Docker
> Affects Versions: 11.0.7.Final
> Reporter: Gustavo Lira e Silva
> Assignee: Ryan Emerson
> Priority: Minor
>
> if you run
> {code:java}
> docker run -p 11222:11222 -e USER="root" -e PASS="123456" infinispan/server{code}
> You will receive
> {noformat}
> java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
> {noformat}
> the env PASS is only accepting String
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months
[Red Hat JIRA] (ISPN-12005) Store purge should ignore errors
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-12005?page=com.atlassian.jira.plugi... ]
Pedro Ruivo updated ISPN-12005:
-------------------------------
Fix Version/s: 11.0.10.Final
(was: 11.0.9.Final)
> Store purge should ignore errors
> --------------------------------
>
> Key: ISPN-12005
> URL: https://issues.redhat.com/browse/ISPN-12005
> Project: Infinispan
> Issue Type: Bug
> Components: Core, Loaders and Stores
> Affects Versions: 10.1.5.Final, 11.0.0.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.0.0.Final, 11.0.10.Final
>
>
> Purging of expired entries from stores is a pretty involved process, especially with {{RocksDBStore}}. When there's a problem unmarshalling the expired bucket or deleting an expired key, the purge task bails out immediately, without processing the remaining keys. To make matters worse, the exception it not logged anywhere. The only sign that something is wrong is a growing store (in the case of {{RocksDBStore}}, a growing number of SST files).
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
5 years, 3 months