Skip to content

CP-52708: Avoid making Unix read/write calls for internal API calls: … #6178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edwintorok
Copy link
Contributor

…forward the API call directly like we do with the CLI for calls to the coordinator when we are the coordinator

We might want to check that tracing still works with this, e.g. we might have to create a new span.

This avoids a lot of needless internal serialization, and a similar mechanism is already used by the CLI.

@edwintorok edwintorok changed the base branch from feature/perf to master February 4, 2025 17:40
This will enable short-circuiting internal API calls.

When the FD is missing mark the call as Internal.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
…forward the API call directly like we do with the CLI for calls to the coordinator when we are the coordinator

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok marked this pull request as ready for review February 6, 2025 18:45
@edwintorok edwintorok enabled auto-merge February 6, 2025 18:48
@edwintorok edwintorok marked this pull request as draft February 6, 2025 18:49
auto-merge was automatically disabled February 6, 2025 18:49

Pull request was converted to draft

@edwintorok
Copy link
Contributor Author

Moving back to draft, no feature flag on this one.

@psafont
Copy link
Member

psafont commented Jun 16, 2025

This seems quite safe and contained to merge, are you sure this should still be a draft?

@lindig
Copy link
Contributor

lindig commented Jun 18, 2025

Unrelated: why is a parameter that is used everywhere using a long and unusual name like __context? Rather than ctx or similar? What are the underscores achieving?

@robhoes
Copy link
Member

robhoes commented Jun 18, 2025

@lindig I think you need a time machine set to 2006 in order to answer that question.

@psafont
Copy link
Member

psafont commented Jun 18, 2025

I can try a quick grep + sed if it makes you happy, I would be painful to rebase all work being done though 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants