From badf209a5e7b83a7be035663b5f4b971eaac91ef Mon Sep 17 00:00:00 2001 From: Andrzej Jackowski Date: Tue, 16 Sep 2025 13:19:12 +0200 Subject: [PATCH] transport: call update_scheduling_group for non-auth connections Before this change, unauthorized connections stayed in `main` scheduling group. It is not ideal, in such case, rather `sl:default` should be used, to have a consistent behavior with a scenario where users is authenticated but there is no service level assigned to the user. This commit adds a call to `update_scheduling_group` at the end of connection creation for an unauthenticated user, to make sure the service level is switched to `sl:default`. Fixes: scylladb/scylladb#26040 (cherry picked from commit 278019c) --- transport/server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/server.cc b/transport/server.cc index e3f9ef8450..04097e1681 100644 --- a/transport/server.cc +++ b/transport/server.cc @@ -959,6 +959,7 @@ future> cql_server::connection::process_st res = make_autheticate(stream, a.qualified_java_name(), trace_state); } } else { + update_scheduling_group(); _ready = true; on_connection_ready(); res = make_ready(stream, trace_state);