pan3793 commented on code in PR #7150: URL: https://github.com/apache/kyuubi/pull/7150#discussion_r2591231266
########## docs/extensions/engines/spark/shutdown-watchdog.md: ########## @@ -0,0 +1,89 @@ +<!-- +- Licensed to the Apache Software Foundation (ASF) under one or more +- contributor license agreements. See the NOTICE file distributed with +- this work for additional information regarding copyright ownership. +- The ASF licenses this file to You under the Apache License, Version 2.0 +- (the "License"); you may not use this file except in compliance with +- the License. You may obtain a copy of the License at +- +- http://www.apache.org/licenses/LICENSE-2.0 +- +- Unless required by applicable law or agreed to in writing, software +- distributed under the License is distributed on an "AS IS" BASIS, +- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +- See the License for the specific language governing permissions and +- limitations under the License. +--> + +# Shutdown Watchdog Plugin + +The shutdown watchdog prevents zombie Spark SQL engines by monitoring graceful shutdown. +If the driver does not finish within the configured timeout, the plugin produces a JVM thread +dump for diagnostics and forcefully terminates the process to unblock resource reclamation. + +## Build with Apache Maven + +The plugin lives in the module `extensions/spark/kyuubi-spark-shutdown-watchdog` and can be built via: + +```shell +build/mvn clean package -DskipTests \ + -pl extensions/spark/kyuubi-spark-shutdown-watchdog -am +``` + +The module still publishes artifacts with the standard Scala suffix +(`kyuubi-spark-shutdown-watchdog_2.12`, `..._2.13`, etc.) so that it aligns with Review Comment: since you write it in Java, it's unnecessary to have a scala suffix I think you can try building it with Spark Scala 2.12 libs, and use it with the Spark Scala 2.13 app -- 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]
