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

Samza-sql: Fix ConsoleLoggingSystemFactory to handle null message value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Currently it fails with the below exception:

      ```Caused by: java.lang.NullPointerException
      at java.lang.String.<init>(String.java:566)
      at com.linkedin.samza.sql.ConsoleLoggingSystemFactory$LoggingSystemProducer.send(ConsoleLoggingSystemFactory.java:88)
      at org.apache.samza.system.SystemProducers.send(SystemProducers.scala:87)```

       

      ```public void send(String source, OutgoingMessageEnvelope envelope) {
      String msg = String.format("OutputStream:%s Key:%s Value:%s", envelope.getSystemStream(), envelope.getKey(),
      new String((byte[]) envelope.getMessage()));```

      Attachments

        Activity

          People

            atoomula Aditya Toomula
            atoomula Aditya Toomula
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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