ruanwenjun commented on PR #7837:
URL: https://github.com/apache/kyuubi/pull/7837#issuecomment-6683795717

   @pan3793 I may have misunderstood your earlier feedback. I traced the 
configuration flow again, and my current understanding is:
   
   | Name | Meaning |
   |---|---|
   | `conf` / `getConf` | Configuration supplied when initializing a shared 
service; its scope depends on the concrete service. |
   | `serverConf` | Server process configuration. |
   | `engineConf` | Engine process configuration, or configuration prepared for 
launching an engine. |
   | `sessionDefaultConf` | Initial session baseline derived from server 
settings and user defaults, before applying session/advisor overrides. |
   | `sessionConfOverlay` | Incremental input for creating a session, relative 
to the component receiving the request. |
   | `normalizedSessionConfOverlay` | Validated and normalized session overlay. 
In Batch, it also includes defaults extracted from Batch-specific configuration 
keys. |
   | `advisorConfOverlay` | Overrides returned by SessionConfAdvisor; 
Batch-specific extraction happens afterwards. |
   | `effectiveSessionConfOverlay` | Normalized session overlay combined with 
the applicable advisor overrides. |
   | `sessionConf` | The session-owned mutable `KyuubiConf`, updated with 
applicable session overrides. On the server, it is the same object supplied as 
`sessionDefaultConf`. |
   | `engineSessionConfOverlay` | The Engine OpenSession payload prepared by 
the server: processed session overrides plus internal session metadata. |
   | `reqConfOverlay` | Incremental settings and control parameters for one 
ExecuteStatement request. |
   | `mergedConf` | A local merge result. In Data Agent, this is 
`session.sessionConfOverlay ++ reqConfOverlay`; I retained the local name 
because its meaning is clear in context. |
   
   One distinction is that `sessionConfOverlay` has different contents at the 
two OpenSession boundaries:
   
   - On the server, it comes from the client OpenSession settings plus frontend 
metadata.
   - On the normal Server → Engine path, the engine receives the server's 
`engineSessionConfOverlay` as its own `sessionConfOverlay`, with any 
engine-side processing. It is no longer just the client's original settings.
   - Batch also uses `sessionConfOverlay` for its creation input, from the 
submission request or persisted metadata during recovery.
   
   Overlays remain partial inputs; each engine retains its existing handling 
rather than uniformly merging every entry into runtime configuration. I also 
preserved the existing `sessionConf` parameter name in the SessionConfAdvisor 
interface as you suggested; that Map parameter currently receives the 
normalized overlay, rather than the merged `KyuubiConf`.
   
   Could you please check whether this understanding and naming match what you 
intended, especially the session overlays on the server and engine sides?
   


-- 
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]

Reply via email to