QQxiaoyuyu commented on issue #1295:
URL: 
https://github.com/apache/incubator-kvrocks/issues/1295#issuecomment-1452915859

   1. Purpose: test whether there is any bad effect after upgrading kvrocks 
from 2.0.6 to 2.3. Therefore, it is necessary to import data from other kvrocks 
to test kvrocks 2.0.6
   
   2. Environmental preparation
   
   target-kv centos7.9 kernel-version linux-5.4.149
   
   src-kv centos7.9 kernel-version linux-4.4.246
   
   kvrocks2redis cenots7.9 kernel-version linux-5.4.149
   
   3. Procedure
   
   1) First compile kvrocks-2.3 on target-kv
   
   2) Copy the compiled kvrocks2redis to kvrocks2redis
   
   3) Copy kvrocks-2.0.6 to target-kv from src-kv, set the password cceq -&$(# 
(KAfds) and start
   
   4) Configure the configuration file in kvrocks2redis, and set the source 
database and destination database passwords to cceq -&$(# (KAfds)
   
   5) Observe the print of the kvrocks2redis log, as follows:
   
   E20230302 17:54:58.802428 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.802887 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.803411 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.803925 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.804463 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.804945 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.805450 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.805927 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.806439 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.806947 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.807446 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 17:54:58.807932 5467 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   6) Kill kv2redis and change the password of target-kv to tuiyi2023kvrockst
   
   7) Restart kv2reids and observe the log printing as follows:
   
   E20230302 18:06:49.413501 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:49.665562 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:49.809759 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:49.961756 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:50.253381 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:50.799962 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:50.817384 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:50.938107 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:50.996701 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:51.010406 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:51.021469 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:51.032426 9068 sync.cc:78] auth got invalid response
   
   E20230302 18:06:51.044173 9068 sync.cc:78] auth got invalid response
   
   8) Change the password of target-kv to x -&$(# (x)), and observe the print 
of kv2redis as follows
   
   E20230302 18:08:55.798810 9871 sync.cc:78] auth got invalid response
   
   E20230302 18:08:55.798920 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.803305 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.808208 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.812773 9871 sync.cc:78] auth got invalid response
   
   E20230302 18:08:55.816367 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.822363 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.827317 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.828011 9871 sync.cc:78] auth got invalid response
   
   E20230302 18:08:55.832218 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.839272 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   E20230302 18:08:55.844763 9966 redis_ writer.cc:112] [kvrocks2redis] redis 
Auth failed: -ERR invaild password
   
   9) Close target-kv, clear the data directory and start it. Change the 
password to tuiyi2023kvrockstest, clear the kv2redis directory and restart it. 
Observe the kv2redis print as follows:
   
   Log file created at: 2023/03/02 18:15:55
   
   Running on machine: bj-lsy-205
   
   Running duration (h:mm:ss): 0:00:00
   
   Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
   
   I20230302 18:15:55.922307 13044 storage.cc:335] [storage] Success to load 
the data from disk: 12 ms
   
   I20230302 18:15:55.922664 13044 sync.cc:65] [kvrocks2redis] Start sync the 
data from kvrocks to redis
   
   
   After printing the log, the kv2redis process exits


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