Comments (4)
#28 now uses the cosocket API. So we might loose some queries but the connection will be resumed as soon as cassandra is reachable again. Now we need to know if this doesn't throw any unexpected errors that could disturb the execution of plugins not using the DB.
from kong.
Right now this doesn't happen. Connection to Cassandra is never resumed and nginx logs the following error:
2015/02/24 00:35:42 [error] 19605#0: *1 [lua] access.lua:28: execute(): Cassandra returned error (Unprepared): "Prepared query with ID 29083996e2fe585226bc6e89ae37c690 not found (either the query was not prepared on this host (maybe the host has been restarted?) or you have prepared too many queries and it has been evicted from the internal cache)", client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "localhost:8000"
from kong.
if the cluster shuts down and restarts, prepared queries are dropped and need to be re-prepared.
from kong.
BTW, re-reading the issue: it won't cause any issue if cassandra is unreachable because of network issues beyond dropping the queries.
It will only be a more critical issue if cassandra was restarted for some reason, because the statements aren't prepared anymore, resulting in errors and no query will succeed.
from kong.
Related Issues (20)
- Kong gets stuck on DNS issue HOT 7
- DB import command not working without cert_digest under ca_certificates in declarative config HOT 1
- file-log plugin fails to log to `/dev/stdout` with `Permission Denied` error HOT 6
- Backport http2 rapid reset cve patch HOT 5
- kong 3.1.1 SSE once return HOT 5
- Error: headers_upstream: invalid entry 'x-kong-request-id' HOT 7
- kong.service.response.get_body() doesn't work properly when using gzip HOT 8
- Allow Header to be persist through out the session
- Kong with http2 and coalescing HOT 2
- Error while executing bazel build for Kong 3.4.2 HOT 10
- set_target with hostname fails HOT 1
- Kong Manager: the "Add document" to Gateway Service / Upload a new spec instead ...(Max 1MB) doesnโt work HOT 1
- IP white list in Kong using IP restriction plugin ingress-based HOT 5
- OTEL plugin ignores configured header type for incoming requests HOT 2
- kong does not support internal redirection ?? HOT 20
- Memory usage of kong with DBless more keeps increasing. HOT 3
- Dev Portal: selection of Category Filter is not intuitive HOT 1
- `kong_request_latency_ms` should follow the service or route life cycle
- Kong KIC fails when rate-limiting plugin config.policy is set to cluster HOT 3
- Kong breaks cert-manager certificate creation HOT 6
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 kong.