-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to achieve a quorum during its retry window #282
Comments
This can be resolved with a workaround.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`const Redis = require("redis");
const { default: Redlock } = require("redlock");
const redis = Redis.createClient({
password: "password",
socket: {
host: "host",
port: port,
},
});
const redlock = new Redlock([redis], {
retryCount: 5,
retryDelay: 100,
});
const connect = async (url, options) => {
await redis.connect();
await main();
};
redis.on("connect", () => {
console.log("Connected to Redis server");
});
redis.on("ready", () => {
console.log("Redis server is ready");
});
redis.on("error", (error) => {
console.error(
Error occurred with Redis client: ${error}
);});
async function main() {
console.log("executing");
const lock = await redlock.acquire(["lockkcck"], 300000);
console.log("lock", lock);
}
connect();
`
This is the code where I am getting this error, I have checked by degrading to v4 as well.
The text was updated successfully, but these errors were encountered: