You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to make use of the plugin to allow global context to be saved and retrieved from our Redis db. It works fine until there is a browser refresh of the node-red canvas. After that, the state can no longer be retrieved from the database. Our only work around to force a reconnection is to restart the node-red container and reestablish the browser session.
The text was updated successfully, but these errors were encountered:
cmerchant
changed the title
Redis db connection for global state is lost when node-red canvass is refreshed
Redis db connection for global state is lost when node-red canvas is refreshed
Nov 7, 2019
We think we know the issue and have a repro. If we lose connection to redis for any reason, the plugin does not have a retry strategy defined. It is explicitly set to undefined in the plugin code (line 179 index.js). Is there any reason for this setting? We forked the repository and commented out this code and no longer see the issue. Once networking is restored the default retry strategy in the redis client reestablishes the connection to the db.
That's a good question to add as a review comment on #1. As I said, I haven't reviewed this code yet, so I'm grateful for any comments you have to help.
We are trying to make use of the plugin to allow global context to be saved and retrieved from our Redis db. It works fine until there is a browser refresh of the node-red canvas. After that, the state can no longer be retrieved from the database. Our only work around to force a reconnection is to restart the node-red container and reestablish the browser session.
The text was updated successfully, but these errors were encountered: