Skip to content

Commit 8791d87

Browse files
committed
This is a follow up of apache#3175 for branch 1.1
1 parent 0a40eac commit 8791d87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/server/SparkSQLOperationManager.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ private[thriftserver] class SparkSQLOperationManager(hiveContext: HiveContext)
199199
// Actually do need to catch Throwable as some failures don't inherit from Exception and
200200
// HiveServer will silently swallow them.
201201
case e: Throwable =>
202+
setState(OperationState.ERROR)
202203
logError("Error executing query:",e)
203204
throw new HiveSQLException(e.toString)
204205
}

0 commit comments

Comments
 (0)