You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Blake Bender (Jira)" <ji...@apache.org> on 2021/06/29 20:14:00 UTC

[jira] [Assigned] (GEODE-9406) gnmsg should log type etc of long values, if it can decode them

     [ https://issues.apache.org/jira/browse/GEODE-9406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Blake Bender reassigned GEODE-9406:
-----------------------------------

    Assignee: Blake Bender

> gnmsg should log type etc of long values, if it can decode them
> ---------------------------------------------------------------
>
>                 Key: GEODE-9406
>                 URL: https://issues.apache.org/jira/browse/GEODE-9406
>             Project: Geode
>          Issue Type: Improvement
>          Components: native client
>            Reporter: Blake Bender
>            Assignee: Blake Bender
>            Priority: Major
>
> The geode-native logger has a hard limit of 8KB for log strings, so for client logs with large values (typically PUT messages with large objects like PDX instances), the hex dump of the message in the log file will be truncated and thus not fully decodable.  The current version of `gnmsg` generically catches exceptions due to truncated messages at top-level, and outputs JSON that looks something like this:
> {code:java}
> "Value": { 
>   "Size": 401767, 
>   "IsObject": 1 
> },
>   "ERROR": "Exception reading message - probably incomplete"
> } {code}
>  
> For `PUT` messages, at least, we can do slightly better, and at least dump the type of the value in the message, which is probably of interest.  Here's an example:
> {code:java}
> "Value": {
>   "Size": 401767,
>   "IsObject": 1,
>   "Data": { 
>     "DSCode": "PDX", 
>     "Value": "<<Unreadable - no type info available in gnmsg>>" 
>   }
> },
>   "EventId": { 
>     "Data": "Unavailable - message is too long" 
>   }
> }  {code}
> We should dump all of this info, if we can decode it. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)