github-actions[bot] commented on code in PR #62620:
URL: https://github.com/apache/doris/pull/62620#discussion_r3166095401
##########
regression-test/suites/pythonudf_p0/test_pythonudf_drop.groovy:
##########
@@ -88,9 +101,33 @@ suite("test_pythonudf_drop") {
sql """SELECT py_drop_a(1);"""
exception "Can not found function"
}
+
+ // Case 3: kill Python servers between two queries, next client
handshake should recover
+ sql """DROP FUNCTION IF EXISTS py_drop_reconnect(INT)"""
+ sql """
+ CREATE FUNCTION py_drop_reconnect(INT) RETURNS INT PROPERTIES (
+ "type" = "PYTHON_UDF",
+ "file" = "file://${zipA}",
+ "symbol" = "drop_udf.evaluate",
+ "runtime_version" = "${runtime_version}"
+ )
+ """
+
+ qt_py_udf_drop_4 """SELECT py_drop_reconnect(31);"""
+
+ backendId_to_backendIP.values().each { be_ip ->
+ execOnBackend(
+ be_ip,
Review Comment:
The reconnect tests kill `python_server.py` by a host-wide command-line
pattern. Doris worktree and CI setups can have multiple BE clusters on the same
host, while the Python UDF socket prefix is the same `/tmp/doris_python_udf`,
so this can terminate Python UDF servers that belong to another running
cluster/worktree. The same pattern is repeated in the UDAF and UDTF reconnect
cases. Please scope the kill to the current BE's child processes/PIDs or
another cluster-specific identifier instead of a global `pkill -f`.
--
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]