Sdas0000 opened a new issue, #5868:
URL: https://github.com/apache/couchdb/issues/5868

   ### Version
   
   3.4.3
   
   ### Describe the problem you're encountering
   
   Unable to move shards to new nodes. 
   
   curl -X GET -u 'admin':${PASS}  
'https://configtest-ro-us-central1.sb-xxxxxxxx-cache.xxxxx.com:443/_membership' 
| jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100   582  100   582    0     0   3751      0 --:--:-- --:--:-- --:--:--  
3754
   {
     "all_nodes": [
       "[email protected]",
       "[email protected]",
       "[email protected]",
       "[email protected]"
     ],
     "cluster_nodes": [
       "[email protected]",
       "[email protected]",
       "[email protected]",
       "[email protected]"
     ]
   }
   
   
   Currently shards are located only on 
[email protected]
   
   curl -X GET -u 'admin':${PASS}  
'https://configtest-ro-us-central1.sb-xxxxxxxx-cache.xxxxxxxx.com:443/pacman_tst049/_shards'
 | jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100   365  100   365    0     0   1979      0 --:--:-- --:--:-- --:--:--  
1983
   {
     "shards": {
       "00000000-3fffffff": [
         "[email protected]"
       ],
       "40000000-7fffffff": [
         "[email protected]"
       ],
       "80000000-bfffffff": [
         "[email protected]"
       ],
       "c0000000-ffffffff": [
         "[email protected]"
       ]
     }
   }
   
   
   The Error: 
   
   curl -X PUT -H "Content-Type: application/json" -u 'admin':${PASS} 
'https://configtest-ro-us-central1.sb-xxxxxxxx-cache.xxxxxxxx.com:443/_node/_local/_dbs/pacman_tst049/rev=1-47bebe08c60b91aa8fd9daa779acd705'
 -d @pacman_tst049.jq.1
   
   {"error":"forbidden","reason":"by_node is mandatory"}
   
   
   The jq file : 
   
   cat pacman_tst049.jq.1
   {
     "_id": "pacman_tst049",
     "shard_suffix": [
       46,
       49,
       55,
       54,
       57,
       50,
       48,
       53,
       48,
       54,
       56
     ],
     "changelog": [
       [
         "add",
         "00000000-3fffffff",
         "[email protected]"
       ],
       [
         "add",
         "40000000-7fffffff",
         "[email protected]"
       ],
       [
         "add",
         "80000000-bfffffff",
         "[email protected]"
       ],
       [
         "add",
         "c0000000-ffffffff",
         "[email protected]"
       ],
       [
         "add",
         "00000000-3fffffff",
         "[email protected]"
       ],
       [
         "add",
         "40000000-7fffffff",
         "[email protected]"
       ],
       [
         "add",
         "80000000-bfffffff",
         "[email protected]"
       ],
       [
         "add",
         "c0000000-ffffffff",
         "[email protected]"
       ],
        [
         "add",
         "00000000-3fffffff",
         "[email protected]"
       ],
       [
         "add",
         "40000000-7fffffff",
         "[email protected]"
       ],
       [
         "add",
         "80000000-bfffffff",
         "[email protected]"
       ],
       [
         "add",
         "c0000000-ffffffff",
         "[email protected]"
      ]
     ],
     "by_node": {
       "[email protected]": [
         "00000000-3fffffff",
         "40000000-7fffffff",
         "80000000-bfffffff",
         "c0000000-ffffffff"
       ],
       "[email protected]": [
         "00000000-3fffffff",
         "40000000-7fffffff",
         "80000000-bfffffff",
         "c0000000-ffffffff"
       ],
       "[email protected]": [
         "00000000-3fffffff",
         "40000000-7fffffff",
         "80000000-bfffffff",
         "c0000000-ffffffff"
       ]
     },
     "by_range": {
       "00000000-3fffffff": [
         "[email protected]",
         "[email protected]",
         "[email protected]"
       ],
       "40000000-7fffffff": [
         "[email protected]",
         "[email protected]",
         "[email protected]"
       ],
       "80000000-bfffffff": [
         "[email protected]",
         "[email protected]",
         "[email protected]"
       ],
       "c0000000-ffffffff": [
         "[email protected]",
         "[email protected]",
         "[email protected]"
       ]
     }
   }
   
   
   
   
   ### Expected Behaviour
   
   The PUT command should update teh metadata with new node information 
   
   ### Steps to Reproduce
   
   Create single node and create pacman_tst049 database and load 10000 document 
   
   create 3 more nodes and add membership to the single node 
   
   to rebalance the shards , retrieve the database’s current metadata
   
   edit and add new nodes to metadata and apply to update the metadata 
   
   
   
   ### Your Environment
   
   _No response_
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to