[JBoss JIRA] (ISPN-12310) Describe the protobuf error message
by Katia Aresti (Jira)
[ https://issues.redhat.com/browse/ISPN-12310?page=com.atlassian.jira.plugi... ]
Katia Aresti updated ISPN-12310:
--------------------------------
Status: Open (was: New)
> Describe the protobuf error message
> -----------------------------------
>
> Key: ISPN-12310
> URL: https://issues.redhat.com/browse/ISPN-12310
> Project: Infinispan
> Issue Type: Feature Request
> Components: Console
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Major
>
> Create a protobuf with
>
> {code:java}
> package book_sample;
> message Book {
> optional string title = 1;
> optional string description = 2;
> optional int publicationYear = 3;
> }{code}
> It will show: *Schema book.proto has errors*
>
> If you inspect the response you will see: *cause: "Failed to resolve type of field "book_sample.Book.publicationYear". Type not found : int"*
>
> It is better to show what is the error
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes with value encoded as java primitives
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Steps to Reproduce:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
Change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
was:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
When trying to change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
> REST server can't handle entry changes with value encoded as java primitives
> ----------------------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12314) lsof check is too expensive
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12314?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-12314:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8679
> lsof check is too expensive
> ---------------------------
>
> Key: ISPN-12314
> URL: https://issues.redhat.com/browse/ISPN-12314
> Project: Infinispan
> Issue Type: Bug
> Components: Build
> Affects Versions: 12.0.0.Dev03
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.0.0.Dev04
>
>
> ISPN-12280 added a test run of {{lsof}} {{infinispan-server.xml}}, to ensure that it exists before trying to start the server and finding out that we can't kill it. Unfortunately, the test run is without any arguments, so the command execution takes a long time and lists all the open files in the system and put them in a system property.
> On my system, the output of {{lsof}} is 86MB, and now I can't run {{mvn -X}} with {{-Xmx512m}} any more.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years