Skip to content
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

Namespace passing in http header #1179

Merged
merged 91 commits into from
Apr 22, 2024

Conversation

shopifyski
Copy link
Contributor

@shopifyski shopifyski commented Mar 8, 2024

Adding alternative to namespace inference from hostname prefix.
Utilizing NAMESPACE_METADATA_KEY to transfer namespace.
Tested with remote_sync example:

MarinPostma and others added 21 commits April 16, 2024 16:55
Builds of arm images are hanging/crashing
* bottomless: upgrade s3 sdk to 1.0

* fix behavior version
* server: add query stats to hrana responses

* update spec with stats

* remove unused import

* fix snapshot

* more snapshots

* add stats to legacy api

* address comments
Old implementation could never finish if the write is faster than
time needed to do two round-trips to primary.

For example it's enough to have a write every 200ms to make sync
never finish if it's done in embedded replica in Sydney
if the primary and the writer are in the US.

Signed-off-by: Piotr Jastrzebski <[email protected]>
* server: add `query_duration_ms` stats to query res

* hrana: default new stats fields
This reverts commit a86b89d.
@LucioFranco LucioFranco added this pull request to the merge queue Apr 22, 2024
Merged via the queue into tursodatabase:main with commit ca8834c Apr 22, 2024
17 checks passed
@jeremywrowe jeremywrowe deleted the jw/namespace-passing-and-auth branch April 23, 2024 13:39
@MarinPostma
Copy link
Contributor

This is a breaking change for the platform. The x-namespace-bin should be base64 encoded. We just hit this issue deploying a new canary image.

FYI, I'll patch that to base64 decode the header value.

@MarinPostma
Copy link
Contributor

MarinPostma commented May 22, 2024

scrap that, the platform was in the wrong

update: the header should be base64 encoded

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.

6 participants