Skip to content

feat: Support configuring the external endpoint of Trino clusters for ackUri rewriting#100

Open
sbernauer wants to merge 20 commits intomainfrom
feat/trino-external-endpoint
Open

feat: Support configuring the external endpoint of Trino clusters for ackUri rewriting#100
sbernauer wants to merge 20 commits intomainfrom
feat/trino-external-endpoint

Conversation

@sbernauer
Copy link
Member

@sbernauer sbernauer commented Jan 14, 2026

Part of #97

Additionally, sometimes the trino-client sends a HEAD request, which we need to proxy as HEAD (ant not GET) as well:

image

@sbernauer
Copy link
Member Author

Pushed the current version as oci.stackable.tech/sandbox/sbernauer/trino-lb:0.0.0-pr100

@sbernauer
Copy link
Member Author

Updated oci.stackable.tech/sandbox/sbernauer/trino-lb:0.0.0-pr100 with the current state of the PR

@sbernauer sbernauer self-assigned this Jan 21, 2026
@sbernauer sbernauer moved this to Development: In Progress in Stackable Engineering Jan 21, 2026
@sbernauer sbernauer moved this from Development: In Progress to Development: Track in Stackable Engineering Jan 26, 2026
@sbernauer sbernauer moved this from Development: Track to Development: Waiting for Review in Stackable Engineering Jan 30, 2026
@sbernauer
Copy link
Member Author

Customer confirmed this solves their issues :)

@Techassi Techassi moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Feb 2, 2026
/// Endpoint of the Trino cluster the query is running on.
pub trino_endpoint: Url,

/// (Optionally, if configured) public endpoint of the Trino cluster.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Slight reword. The fact that this option is optional implies that it only takes effect when configured.

Suggested change
/// (Optionally, if configured) public endpoint of the Trino cluster.
/// Optional public endpoint of the Trino cluster.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer my variant as it makes it a bit more clear.
Every Trino always has a public endpoint. The question is, if trino-lb was configured to know about it or not

Copy link
Member

@Techassi Techassi Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Optionally use the ... is better then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the relevant part is to mention that this depends on the trino-lb config.
WDYT of this?

    /// Public endpoint of the Trino cluster, if it's configured in the trino-lb config.
    /// This can e.g. be used to change segment ackUris to.

/// special handling.
#[instrument(
name = "GET /v1/statement/executing/{queryId}/{slug}/{token}",
name = "GET (or HEAD) /v1/statement/executing/{queryId}/{slug}/{token}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: Ideally we set this to the appropriate HTTP method in the function itself, but I'm unsure if this is supported (without using the special otel.name field/attribute).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you plan to do any work on this (if it is indeed possible)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm personally fine as is

@sbernauer sbernauer requested a review from Techassi February 5, 2026 11:55
@sbernauer sbernauer requested review from Techassi and removed request for Techassi February 13, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

2 participants