Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete and Delete_multi not working #169

Open
akhalil-xiq opened this issue Nov 11, 2019 · 1 comment
Open

Delete and Delete_multi not working #169

akhalil-xiq opened this issue Nov 11, 2019 · 1 comment

Comments

@akhalil-xiq
Copy link

akhalil-xiq commented Nov 11, 2019

When I tried to delete three keys in loop, it only deletes first and the following are not deleted. On the other hand, when I tried to use delete_multi(), it returns 0 always. I don't know the issue.
Here is a code:
`mc = Client([remote server IP])
for key in [digest_key, launchPadCompanies_key, heatmap_key]:
logger.info('Delete Res: ' + str(mc.delete(key)))

#     count = 0
#     while count < 3:
#     res = mc.delete_multi([digest_key, launchPadCompanies_key, heatmap_key])
#     if res == 1:
#         logger.info('Success Response: ' + str(count) + "-" + str(res))
#         break
#     logger.info('Fail Response: ' + str(count) + "-" + str(res))
#     count += 1

`
@alex @timgraham @jerith @linsomniac

@akhalil-xiq
Copy link
Author

I found that it was due to socket_timeout. As the default is 3 sec, I changed it to 10 sec and it works fine. Can you explain it to me? when I set/get on default time it works fine but on deletes, it does not.
@linsomniac @alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant