[JBoss JIRA] (ISPN-11910) Server should see application/octet-stream as protostream
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-11910?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-11910:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8384
> Server should see application/octet-stream as protostream
> ---------------------------------------------------------
>
> Key: ISPN-11910
> URL: https://issues.redhat.com/browse/ISPN-11910
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 11.0.0.CR1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 11.0.0.Final
>
>
> The server, and Infinispan in general, should use the user marshaller to read {{application/octet-stream}} and {{application/unknown}} data.
> ISPN-10433 added a hack in the server (for backwards compatibility, I assume): if {{jboss-marshalling}} is on the classpath, {{org.infinispan.server.core.LifecycleCallbacks.cacheManagerStarting()}} changes the marshaller for {{application/unknown}} (but not for {{application/octet-stream}}) to {{GenericJBossMarshaller}}.
> This means that {{server/core}}, {{server/hotrod}}, and {{client/hotrod-client}} tests see {{application/unknown}} as protostream, but the server distribution in {{server/runtime}} always includes {{jboss-marshalling}}, so the server distribution sees {{application/unknown}} as {{GenericJBossMarshaller}} data.
> It would be much better if the server always used the user marshaller for {{application/unknown}}, and when a user needs backwards compatibility between a new server and an old client, they should configure {{GenericJBossMarshaller}} in the server.
> In addition, new clients should not use {{application/unknown}} unless the marshaller does not implement {{getMediaType()}}: they know the marshaller's media type, and they should send it to the server.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (ISPN-11927) Remove Util#threadDump java.lang.management dependencies
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11927?page=com.atlassian.jira.plugi... ]
Ryan Emerson updated ISPN-11927:
--------------------------------
Status: Open (was: New)
> Remove Util#threadDump java.lang.management dependencies
> --------------------------------------------------------
>
> Key: ISPN-11927
> URL: https://issues.redhat.com/browse/ISPN-11927
> Project: Infinispan
> Issue Type: Enhancement
> Components: REST
> Affects Versions: 11.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 11.0.0.Final
>
>
> Currently {{Util#threadDump}} utilises {{java.lang.management.ManagementFactory}} and {{java.lang.management.ThreadMXBean}} to generate the thread dump string. Neither of these classes work with GraalVM native compilation, therefore we should generate this String using {{Thread.getAllStackTraces}}.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (ISPN-11928) Rest /v2/server/env should utilise System.getProperties()
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11928?page=com.atlassian.jira.plugi... ]
Ryan Emerson updated ISPN-11928:
--------------------------------
Status: Open (was: New)
> Rest /v2/server/env should utilise System.getProperties()
> ---------------------------------------------------------
>
> Key: ISPN-11928
> URL: https://issues.redhat.com/browse/ISPN-11928
> Project: Infinispan
> Issue Type: Enhancement
> Components: REST
> Affects Versions: 11.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 11.0.0.Final
>
>
> Currently {{ServerResource#env}} utilises {{ManagementFactory.getRuntimeMXBean().getSystemProperties()}} in order to return system properties. The {{java.lang.management}} package is not supported with GraalVM native compilation, therefore we should simply use {{System.getProperties}} instead.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (ISPN-11934) Remove ServerResource.ServerInfo to avoid unnecessary reflection
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11934?page=com.atlassian.jira.plugi... ]
Ryan Emerson updated ISPN-11934:
--------------------------------
Status: Open (was: New)
> Remove ServerResource.ServerInfo to avoid unnecessary reflection
> ----------------------------------------------------------------
>
> Key: ISPN-11934
> URL: https://issues.redhat.com/browse/ISPN-11934
> Project: Infinispan
> Issue Type: Enhancement
> Components: REST
> Affects Versions: 11.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 11.0.0.Final
>
>
> {{ServerResource.ServerInfo}} is converted by Jackson to JSON in order to return the Infinispan version, however as no other information is required it's possible to simply return a JSON string directly. This avoids Jackson performing reflection and means less metadata required for the native server build.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months