0
votes

I use this config:

{
  "autoDeploy": true, (Also I have tried false value)
  "readQuorum": 1,
  "writeQuorum": "majority",
  "executionMode": "undefined",
  "readYourWrites": true,
  "newNodeStrategy": "static",
  "servers": {
    "*": "master"
  },
  "clusters": {
    "internal": {
    },
    "class_01": {
      "servers": ["n01"]
    },
    "class_02": {
      "servers": ["n01","n02"]
    },
    "class_03": {
      "servers": ["n03"]
    },
    "*": {
      "servers": ["<NEW_NODE>"]
    }
  }
}

Does anyone use something like this config and could use this query: Select from Class (not Select from class_01 or Select from class_02 ...) As I read "Read records", it is possible to use Select from Class. But I can't use it. Even if I run Select from cluster:class_03 from n01 I won't have response (I will get error) If I run Select from cluster:class_01 from n01 I will get the result.

What should I do? (FYI: My orientdb version is 2.2.33)

2
What error are you getting? - Oleksandr Gubchenko
This is an error that I get: Exception in thread "main" com.orientechnologies.orient.server.distributed.ODistributedException: No active nodes found to execute command: sql.select rid from index:User.idNumber where key = ? - Hossein
And I get this warning in my Orientdb console: WARNI I/O Error on distributed channel (clientId=8 reqType=121 error=java.io.InvalidClassException: com.orientechnologies.orient.core.sql.query.OBasicResultSet; no valid constructor) - Hossein
I don't have errors with the Orientdb version 2.0.7! - Hossein

2 Answers

0
votes

with 2.2.33 and 2.2.30 I have no problem, have you tried to run a CHECK DATABASE?

0
votes

there is an error in your config file, there is no "class_03" in it.

    "class_02": {
      "servers": ["n01","n02"]
    },
    "class_02": {
      "servers": ["n03"]
    },