diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala index cab2fe9b90de2..32caf8a1bc815 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala @@ -710,7 +710,8 @@ case class AcquiredThreadInfo() { override def toString(): String = { val taskStr = if (tc != null) { val taskDetails = - s"${tc.partitionId}.${tc.attemptNumber} in stage ${tc.stageId}, TID ${tc.taskAttemptId}" + s"partition ${tc.partitionId}.${tc.attemptNumber} in stage " + + s"${tc.stageId}.${tc.stageAttemptNumber()}, TID ${tc.taskAttemptId}" s", task: $taskDetails" } else ""