GithubHelp home page GithubHelp logo

aerospike-community / aerospike-session-store-expressjs Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 7.0 49 KB

plugin for express.js to use aerospike as session store

License: Apache License 2.0

Makefile 0.37% JavaScript 80.95% Shell 18.68%

aerospike-session-store-expressjs's Issues

How to save some of the data in separate bin?

I was seeing the code and at the time of saving the session, it stringifies the object and saves it in one bin. I want to save some of the data in separate bin so that I can create a secondary index on them? Any way to do that?

Aerospike Timeout issue

Why I am getting these error not found any solution for this :

ERROR(1696) [command.cc:84] [ErrorCallback] - Client error in Put command: Socket read failed: -4095 [-6]
0| 2018-08-16 15:13 +05:30: AerospikeError: Socket read failed: -4095

WARN (3103) [as_cluster.c:564] [as_cluster_tend] - Node BB90C5988565000 peers refresh failed: AEROSPIKE_ERR_TIMEOUT

Please revert as soon as possible.

AerospikeError: Not connected. after server restart

It looks like if the connection between the server gets interrupted or the server restarts, the connection is never re-established.

To reproduce this

  1. Configure to just connect to a single aerosplike server
  2. read/write to session variables like normal on requests
  3. restart aerospike server.
  4. on next request, you will see this exception:
AerospikeError: Not connected.
    at Function.AerospikeError.fromASError (PROJECT_ROOT/node_modules/aerospike/lib/aerospike_error.js:113:10)
    at Client.DefaultCallbackHandler [as callbackHandler] (PROJECT_ROOT/node_modules/aerospike/lib/client.js:71:72)
    at nextTickCb (PROJECT_ROOT/node_modules/aerospike/lib/client.js:1471:10)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

To fix this you need to restart the node process which is very inconvenient. it would be much better if the client library detects this and reconnects.

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.