Git Product home page Git Product logo

Comments (4)

thibaultcha avatar thibaultcha commented on May 12, 2024

#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.

subnetmarco avatar subnetmarco commented on May 12, 2024

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.

thibaultcha avatar thibaultcha commented on May 12, 2024

if the cluster shuts down and restarts, prepared queries are dropped and need to be re-prepared.

from kong.

thibaultcha avatar thibaultcha commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.