Skip to content

Add x-strake-warning metadata header for queries under degraded licenses #2

Description

@banickn

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:

  1. Locate StrakeFlightSqlService::execute_and_stream in crates/server/src/flight_sql.rs.
  2. Find the match arm for LicenseState::Degraded (around line 139).
  3. 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".
  4. Ensure it still logs the warning as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions