Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-2416

Adding null-check before incrementing metrics for bytesSerialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rayman7718 Rayman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m