Comments (4)
Yes, we should.
Several considerations remain:
- Handling forward failures.
- Determining the layer for forwarding: Should it occur in the HTTP handler or at a lower level?
from databend.
Do we need to consider failure? sql callers need to know clearly whether sql execution succeeds or fails.
If forwarding fails and returns execution fails, but the actual sql is still executing, it will cause confusion.
from databend.
some sugesstion:
The forwarding path should not change if the number of query members changes(in process of scale-in or scale-out).
If the client side gets SQL execution failure, then it must really fail, no matter on any node.
from databend.
Here's a condensed version of the protocol:
- Client sends a request to query-1 (warehouse-id: w1).
- Client sends the next request to query-2 (warehouse-id: w2), including a header with the previous warehouse-id (w1).
- Query-2 responds with a forward protocol(reponse with query-1 host?), instructing the client to redirect the query to query-1.
- Client redirects the query to query-1.
- Client receives the result from query-1.
This protocol ensures that the client interacts with the correct query node based on the previous request's warehouse-id, maintaining consistency and safety in a 3-node cluster.
I am not sure this works in k8s, please clarify, @ZhiHanZ
from databend.
Related Issues (20)
- bug: select an empty table when enable query cache panic
- bug: bloom index may not be created during exec of `merge into`
- Feature: need a way to amend bloom index (rebuild missing indexes) HOT 1
- feat: remove streaming upload? HOT 1
- bug: databend-meta snapshot oom HOT 4
- bug: COPY INTO from compressed archive should ignore PAX metadata HOT 4
- bug: INNER-JOIN result error
- bug: UNION-ALL result error HOT 1
- bug: UNION-ALL and LIMIT return ERROR msg
- bug: LATERAL VALUES ignores NULL values HOT 2
- bug: table function `fuse_snapshot` only show the latest snapshot for external table
- feat: parquet file format support null_if
- flaky ci: test_compat HOT 2
- RFC: Enhancing Error Handling in Rust with `error-stack`
- bug: create <object> only need to check current role privilege
- bug: wrong comparison result for sum(decimal) HOT 3
- Bug: query result isn't expected due to misuse table name
- bug: the auto compaction failed to maintain segment compaction
- bug: CREATE USER does not work the same for UUID user HOT 3
- bug: SQL parser does not process comments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from databend.