Context: In crates/server/src/flight_sql.rs, when a query executes and the license state is Degraded, we currently only log a warning via tracing::warn!. We want to also send a grpc metadata header back to the client.
Task:
- Locate
StrakeFlightSqlService::execute_and_stream in crates/server/src/flight_sql.rs.
- Find the match arm for
LicenseState::Degraded (around line 139).
- Update the code to append an
x-strake-warning header to the Response object returned at the end of the function, with the text "Executing query in degraded license state".
- Ensure it still logs the warning as well.
Context: In
crates/server/src/flight_sql.rs, when a query executes and the license state isDegraded, we currently only log a warning viatracing::warn!. We want to also send a grpc metadata header back to the client.Task:
StrakeFlightSqlService::execute_and_streamincrates/server/src/flight_sql.rs.LicenseState::Degraded(around line 139).x-strake-warningheader to theResponseobject returned at the end of the function, with the text"Executing query in degraded license state".