levy5307 opened a new pull request #649: URL: https://github.com/apache/incubator-pegasus/pull/649
### What problem does this PR solve? <!--add issue link with summary if exists--> Add a class `rocksdb_wrapper` to wrap the operation of rocksdb, and put `db_get` into it. ### Check List <!--REMOVE the items that are not applicable--> Tests <!-- At least one of them must be included. --> - Unit test - Manual test (add detailed scripts or steps below) ``` >>> use temp OK >>> set a b 1 OK app_id : 2 partition_index : 4 decree : 1 server : 10.232.55.210:34802 >>> incr a b 2 app_id : 2 partition_index : 4 decree : 2 server : 10.232.55.210:34802 >>> check_and_set a -c b -t exist -s b1 -v c1 -r hash_key: "a" check_sort_key: "b" check_type: exist set_sort_key: "b1" set_value: "c1" set_value_ttl_seconds: 0 return_check_value: true Set succeed. Check value: "2" app_id : 2 partition_index : 4 decree : 4 server : 10.232.55.210:34802 >>> get a b1 "c1" app_id : 2 partition_index : 4 server : 10.232.55.210:34802 >>> set a b c 1 OK app_id : 2 partition_index : 4 decree : 7 server : 10.232.55.210:34802 >>> check_and_set a -c b -t exist -s b1 -v c1 -r hash_key: "a" check_sort_key: "b" check_type: exist set_sort_key: "b1" set_value: "c1" set_value_ttl_seconds: 0 return_check_value: true Set failed, because check not passed. Check value not exist. app_id : 2 partition_index : 4 decree : 8 server : 10.232.55.210:34802 >>> set a b c OK app_id : 2 partition_index : 4 decree : 9 server : 10.232.55.210:34802 >>> check_and_set a -c b_not_exist -t exist -s b1 -v c1 -r hash_key: "a" check_sort_key: "b_not_exist" check_type: exist set_sort_key: "b1" set_value: "c1" set_value_ttl_seconds: 0 return_check_value: true Set failed, because check not passed. Check value not exist. app_id : 2 partition_index : 4 decree : 10 server : 10.232.55.210:34802 ``` Related changes - Need to cherry-pick to the release branch - Need to be included in the release note ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
