anishshri-db commented on code in PR #53313:
URL: https://github.com/apache/spark/pull/53313#discussion_r2604920508


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala:
##########
@@ -1658,9 +1660,13 @@ class RocksDB(
     loadedStateStoreCkptId = None
     sessionStateStoreCkptId = None
     lineageManager.clear()
-    changelogWriter.foreach(_.abort())
-    // Make sure changelogWriter gets recreated next time.
-    changelogWriter = None
+    try {

Review Comment:
   Why not put the whole function in `try finally` ?



-- 
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]

Reply via email to