threefoldtech / 0-db

Fast write ahead persistent redis protocol key-value store
Apache License 2.0
39 stars 10 forks source link

zdb namespace switched from sequential to user mode by itself #128

Closed OmarElawady closed 2 years ago

OmarElawady commented 2 years ago

namespaces 24-4182-data1 through 24-4182-data4 were deployed to back qsfs in sequential mode, but they were changed automatically to userkey mode. output of echo -n $(redis-cli -h 301:ad3a:9c52:98d1:4131:52cb:438:210a -p 9900 nsinfo 24-4182-data1)":

...
mode: userkey
...

Node ID: 10 on devnet ZDB IPs: 301:ad3a:9c52:98d1:4131:52cb:438:210a & 2a10:b600:1:0:a053:d7ff:feed:38d3 Deployment ID: 4182 Deployment data:

{
  "version": 0,
  "twin_id": 24,
  "contract_id": 4182,
  "metadata": "",
  "description": "",
  "expiration": 0,
  "signature_requirement": {
    "requests": [
      {
        "twin_id": 24,
        "required": false,
        "weight": 1
      }
    ],
    "weight_required": 1,
    "signatures": [
      {
        "twin_id": 24,
        "signature": "",
        "signature_type": "ed25519"
      }
    ]
  },
  "workloads": [
    {
      "version": 0,
      "name": "meta1",
      "type": "zdb",
      "data": {
        "size": 1073741824,
        "mode": "user",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144711,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-meta1",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "meta2",
      "type": "zdb",
      "data": {
        "size": 1073741824,
        "mode": "user",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144711,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-meta2",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "meta3",
      "type": "zdb",
      "data": {
        "size": 1073741824,
        "mode": "user",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144711,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-meta3",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "meta4",
      "type": "zdb",
      "data": {
        "size": 1073741824,
        "mode": "user",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144711,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-meta4",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "data1",
      "type": "zdb",
      "data": {
        "size": 10737418240,
        "mode": "seq",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144712,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-data1",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "data2",
      "type": "zdb",
      "data": {
        "size": 10737418240,
        "mode": "seq",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144712,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-data2",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "data3",
      "type": "zdb",
      "data": {
        "size": 10737418240,
        "mode": "seq",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144712,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-data3",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    },
    {
      "version": 0,
      "name": "data4",
      "type": "zdb",
      "data": {
        "size": 10737418240,
        "mode": "seq",
        "password": "password",
        "public": false
      },
      "metadata": "",
      "description": "description",
      "result": {
        "created": 1641144713,
        "state": "ok",
        "message": "",
        "data": {
          "Namespace": "24-4182-data4",
          "IPs": [
            "2a10:b600:1:0:a053:d7ff:feed:38d3",
            "301:ad3a:9c52:98d1:4131:52cb:438:210a"
          ],
          "Port": 9900
        }
      }
    }
  ]
}
maxux commented 2 years ago

Fixed via https://github.com/threefoldtech/0-db/commit/7341dcb006012991944dd36fac178a6933a3b5d0, release 2.0.2 out