Skip to content

Commit b3ef06b

Browse files
lianchengmarmbrus
authored andcommitted
[SPARK-4308][SQL] Follow up of apache#3175 for branch 1.1
PR apache#3175 is for master branch only and can't be backported to branch 1.1 directly because Hive 0.13.1 support. Author: Cheng Lian <[email protected]> Closes apache#3176 from liancheng/fix-op-state-for-1.1 and squashes the following commits: 8791d87 [Cheng Lian] This is a follow up of apache#3175 for branch 1.1
1 parent 86b1bd0 commit b3ef06b

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)