This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new a7762707f007 [SPARK-57429][SQL] Revise debug message in 
`ThriftHttpServlet`
a7762707f007 is described below

commit a7762707f007b9625929c10036f8487284075ef1
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sat Jun 13 18:40:21 2026 -0700

    [SPARK-57429][SQL] Revise debug message in `ThriftHttpServlet`
    
    ### What changes were proposed in this pull request?
    
    Revise `DEBUG` log message in `ThriftHttpServlet`.
    
    ### Why are the changes needed?
    
    To be more secure.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs because this is logging-only change.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (Claude Opus 4.8)
    
    Closes #56491 from dongjoon-hyun/SPARK-57429.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit b6450e6765a2fbe307c0b10d744da3ab4583ba44)
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit 5f11a43d4690173fbf53cfcce8610be4ba244cfd)
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit 68ae6b14df0b70242f9bdd0cdfb1dee00dc4954a)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
 
b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
index 350ef89ec4d2..f88a2deb5e7f 100644
--- 
a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
+++ 
b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
@@ -102,7 +102,7 @@ public class ThriftHttpServlet extends TServlet {
     if (isCookieAuthEnabled) {
       // Generate the signer with secret.
       String secret = Long.toString(RAN.nextLong());
-      LOG.debug("Using the random number as the secret for cookie generation " 
+ secret);
+      LOG.debug("Using the random number as the secret for cookie generation");
       this.signer = new CookieSigner(secret.getBytes());
       this.cookieMaxAge = (int) hiveConf.getTimeVar(
         ConfVars.HIVE_SERVER2_THRIFT_HTTP_COOKIE_MAX_AGE, TimeUnit.SECONDS);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to