[GCS]Delete redis accessor module#9898
Conversation
|
Can one of the admins verify this patch? |
|
Test FAILed. |
|
Test FAILed. |
CI_KEEP_ALIVE: Travis
|
Test FAILed. |
|
RedisGcsClient does not need to inherit GcsClient, and maybe we can remove it, because we can use RedisClient directly. @rkooo567 What's your suggestion? |
|
Test FAILed. |
rkooo567
left a comment
There was a problem hiding this comment.
@ffbin Ah, I see. So you mean we can just use ServiceBasedAccessor for testing and completely remove RedisGcsClient because we won't need it anymore right? It seems like gcs_server -> Redis is done by redis_store_client, so I think it is fine to remove.
Also, it seems like we are writing mock accessor per tests. Is there any way we can just collect all mock accessors in a single file (or dir) and just import them to test files? I assume they are usually resuable.
|
Test FAILed. |
|
Hey @kisuke95 If the PR is ready to be reviewed again, please remove the tag (author action required)! |
| return ms_since_epoch.count(); | ||
| } | ||
|
|
||
| class MockGcsClient : public gcs::RedisGcsClient { |
There was a problem hiding this comment.
@ffbin Didn't you mention we should use RedisClient directly? Is it still applied?
There was a problem hiding this comment.
I think we can remove RedisGcsClient directly.
@rkooo567 So I put them in a header file, and import it in |
|
I will mark the PR as author action required as @ffbin said we can remove RdisGCSClient. I think if we don't do this in this PR, we will never do that, so I am favorable doing it if it can remove good amount of code. Please remove the tag if you think it is unnecessary (or if you remove RedisGCSClient). |
@rkooo567 I'm an intern of Alipay, now I'm preparing for my report on work to become a regular staff. I will remove RedisGcsClient after it. |
|
No worries @kisuke95 Good luck on your report :)! Please take your time and re-ping me or remove a |
|
@ffbin Will somebody take on this work? |
|
@kfstorm thanks for bringing this up. I’d like to finish this pr asap. |
We will continue to complete this pr. I prefer to split this pr. At present, there are many modified PR files and the merging cycle is relatively long. |
Why are these changes needed?
Delete the old
rediss accessormodule, which is not needed. Now, we useGCS table storageinstead to handle requests.In order to remove
RedisGcsClient, there still some test files to be modified.Related issue number
Checks
scripts/format.shto lint the changes in this PR.