You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Rayman (Jira)" <ji...@apache.org> on 2020/02/28 19:25:00 UTC

[jira] [Resolved] (SAMZA-2416) Adding null-check before incrementing metrics for bytesSerialized

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

Rayman resolved SAMZA-2416.
---------------------------
    Resolution: Fixed

> Adding null-check before incrementing metrics for bytesSerialized
> -----------------------------------------------------------------
>
>                 Key: SAMZA-2416
>                 URL: https://issues.apache.org/jira/browse/SAMZA-2416
>             Project: Samza
>          Issue Type: Bug
>            Reporter: Rayman
>            Priority: Major
>             Fix For: 1.4
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Adding null-check before incrementing metrics for bytesSerialized
> Symptom: User serde-serialization logic can choose to serialize non-null objects to a null, which implies delete the value. In this case, current code tries to increment the metrics using the size of the null and fails with an NPE.
> Cause: Current code tries to increment the bytesSerialized metrics using the size of the null and fails with an NPE.
> Fix: Added logic to skip metric value update if serde returns null.



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