infdahai commented on issue #1410:
URL: 
https://github.com/apache/incubator-kvrocks/issues/1410#issuecomment-1529794145

   I find many go tests use the `config` map including `"cluster-enabled": 
"yes"` and the `StartServerWithCLIOptions` function writes the option to the 
`kvrocks.conf` file. 
   
   ```go
   func TestClusterDumpAndLoadClusterNodesInfo(t *testing.T) {
        srv1 := util.StartServer(t, map[string]string{
                "bind":            "0.0.0.0",
                "cluster-enabled": "yes",
        })
   ```
   
   in StartServerWithCLIOptions func(),
   
https://github.com/apache/incubator-kvrocks/blob/30e9fd788a4acb585566a008f4d5fff65ee06ce3/tests/gocase/util/server.go#L197-L207
   
   I haven't seen a commad that changes `cluster` mode, so it means we should 
define the option in the initial config file if we want to use `cluster` mode. 
   
   


-- 
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