Comments (7)
With the current version (0.9.14), I believe the SBCL workaround should be:
(setf dexador.connection-cache::*threads-connection-pool*
(make-hash-table :test 'equal :synchronized t))
not as given above as:
(setf cl-dbi::*threads-connection-pool*
(make-hash-table :test 'equal :synchronized t))
from dexador.
(nit: your title is truncated)
from dexador.
@vindarel probably I just didn't finish it. Now it is fixed.
By the way, I've seen a similar error in Ultralisp.org's logs.
Sometimes it stop working because of that and I have to restart docker container :(
We need to invest some time and to fix it.
from dexador.
This issue is similar to fukamachi/cl-dbi#46 a lock should be added to guard hash from parallel modifications.
Or maybe some lock free structure like http://quickdocs.org/cl-skip-list/ could be used.
from dexador.
I've used cl-skip-list once, but in practice and for my use-case its performance was inferior to sbcl synchronized hash-table, and likely that will be also enough for most people. probably for sbcl only unfortunately, a very easy fix is to use (make-hashtable :synchronized t).
from dexador.
@fukamachi probably here https://github.com/fukamachi/cl-dbi/blob/7ba050dea8d137c1f85b7e704d4fc945104bf283/src/cache/thread.lisp#L19-L21 we need to use bt:with-lock-held because hash is modified and this is not a thread safe operation.
from dexador.
Thank you, @Linden6! Original post includes the code for cl-dbi, which has a similar problem.
from dexador.
Related Issues (20)
- Connection-pool nil problem when using master HOT 6
- Allow content for dex:delete HOT 2
- There is no character with name "NUL" HOT 3
- ERROR 12002: Timeout [Condition of type WINHTTP::WIN-ERROR]
- dex:fetch leaves files open HOT 6
- Potential issue with failing to close connections HOT 12
- The condition #<CHUNGA:INPUT-CHUNKING-UNEXPECTED-END-OF-FILE 4060090DA0> occurred HOT 4
- Is there a problem with the `dex:post` with an s-expression data on the body? HOT 2
- `ignore-and-continue` on `http-request-fail` HOT 3
- Failing when requesting localhost HOT 15
- Dex not restarting with SSL errors.
- Automatic URL parameter encoding for Content-Type: application/x-www-form-urlencoded breaks old code HOT 4
- Calling DEX::MAYBE-CLOSE with optional "close-if T" argument causes a CCL::BAD-SLOT-TYPE HOT 4
- Windows: Content-Type is replaced with "text/plain" when `:content` is present HOT 3
- Dexador started automatically retry bad requests, but previosly didn't HOT 3
- Keep alive stream prematurely EOFs HOT 3
- Retry on typical errors solution
- Specifying content types for parts of a post request HOT 1
- Name Conflict HOT 5
- Copying from KEEP-ALIVE-STREAM: The value NIL is not of type STREAM HOT 7
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 dexador.