Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style fix
  • Loading branch information
asl3 committed Jul 10, 2024
commit 5b67ffdcf528d595b5a36a54f883791297b8b5a8
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ case class SessionHolder(userId: String, sessionId: String, session: SparkSessio
private lazy val planCache: Option[Cache[proto.Relation, LogicalPlan]] = {
if (SparkEnv.get.conf.get(Connect.CONNECT_SESSION_PLAN_CACHE_SIZE) <= 0) {
logWarning(log"Session plan cache is disabled due to non-positive cache size." +
log" Current value of '${MDC(LogKeys.CONFIG, Connect.CONNECT_SESSION_PLAN_CACHE_SIZE.key)}' is" +
log"${MDC(LogKeys.CACHE_SIZE, SparkEnv.get.conf.get(Connect.CONNECT_SESSION_PLAN_CACHE_SIZE))}")
log" Current value of '${MDC(LogKeys.CONFIG,
Connect.CONNECT_SESSION_PLAN_CACHE_SIZE.key)}' is ${MDC(LogKeys.CACHE_SIZE,
SparkEnv.get.conf.get(Connect.CONNECT_SESSION_PLAN_CACHE_SIZE))}")
None
} else {
Some(
Expand Down