LuciferYang commented on PR #39415:
URL: https://github.com/apache/spark/pull/39415#issuecomment-1373173957
```
13:45:13.014 ERROR
org.apache.spark.sql.execution.streaming.StreamingQueryListenerBus: Listener
StreamingQueryStatusListener threw an exception
java.lang.NullPointerException
at
org.apache.spark.status.protobuf.StoreTypes$StreamingQueryData$Builder.setName(StoreTypes.java:57107)
at
org.apache.spark.status.protobuf.sql.StreamingQueryDataSerializer.serialize(StreamingQueryDataSerializer.scala:33)
at
org.apache.spark.status.protobuf.KVStoreProtobufSerializer.serialize(KVStoreProtobufSerializer.scala:29)
at org.apache.spark.util.kvstore.RocksDB.write(RocksDB.java:188)
at
org.apache.spark.status.ElementTrackingStore.write(ElementTrackingStore.scala:123)
at
org.apache.spark.status.ElementTrackingStore.write(ElementTrackingStore.scala:127)
at
org.apache.spark.sql.streaming.ui.StreamingQueryStatusListener.onQueryStarted(StreamingQueryStatusListener.scala:82)
at
org.apache.spark.sql.execution.streaming.StreamingQueryListenerBus.doPostEvent(StreamingQueryListenerBus.scala:131)
at
org.apache.spark.sql.execution.streaming.StreamingQueryListenerBus.doPostEvent(StreamingQueryListenerBus.scala:43)
at org.apache.spark.util.ListenerBus.postToAll(ListenerBus.scala:117)
at org.apache.spark.util.ListenerBus.postToAll$(ListenerBus.scala:101)
at
org.apache.spark.sql.execution.streaming.StreamingQueryListenerBus.postToAll(StreamingQueryListenerBus.scala:88)
at
org.apache.spark.sql.execution.streaming.StreamingQueryListenerBus.post(StreamingQueryListenerBus.scala:77)
at
org.apache.spark.sql.streaming.StreamingQueryManager.postListenerEvent(StreamingQueryManager.scala:231)
at
org.apache.spark.sql.execution.streaming.StreamExecution.postEvent(StreamExecution.scala:402)
at
org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runStream(StreamExecution.scala:278)
at
org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:207)
```
https://github.com/apache/spark/blob/99739ae068d6ad828ba3453af2a8c738ab37a3a8/sql/core/src/main/scala/org/apache/spark/status/protobuf/sql/StreamingQueryDataSerializer.scala#L33
`data.name` still needs to be protected to avoid NPE
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]