Skip to content

createSentinel with config RESP 3 , but not set #3140

@i18nsite

Description

@i18nsite

Description

code

import { createSentinel } from "redis";
import KVROCKS from "../conf/KVROCKS.js";

const S = await createSentinel(KVROCKS)
  .on("error", (err) => {
    console.error("Redis Error:", err);
  })
  .connect();

console.log(KVROCKS);

console.log(await S.hello());
console.log(await S.hello(3));

config :

{
  RESP: 3,
  sentinelOptions: {
    RESP: 3,
  },
  name: "kvrocks",
  sentinelClientOptions: {
    password: "xxx",
  },
  sentinelRootNodes: [
    {
      host: "x.x.x.x",
      port: 2011,
    }, {
      host: "x.x.x.x",
      port: 2011,
    }, {
      host: "x.x.x.x",
      port: 2011,
    }
  ],
  nodeClientOptions: {
    password: "xxx",
  },
}
[
  "server", "redis", "version", "4.0.0", "proto", 2, "mode", "standalone", "role", "master", "modules",
  null
]
[Object: null prototype] {
  server: "redis",
  version: "4.0.0",
  proto: 3,
  mode: "standalone",
  role: "master",
  modules: null,
}

Node.js Version

v24.11.1

Redis Server Version

kvrocks_version:2.14.0

Node Redis Version

5.10.0

Platform

mac

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions