-
Notifications
You must be signed in to change notification settings - Fork 11
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
Locking for shares part 1 #11 #74
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I see many changes not necessarily related to this PR (like cleanups, fixes here and there, comments). It's better to separate things into smaller and thematic PRs, which makes it easier to review and results in a cleaner history.
But, either way, I've done some request and questions. I think the biggest change is that we should make the locking transparent and integrate it inside the save/read API. Ah, and just lock all the time, not only on shared files. Also, let's try to optimize this and cache things + reduce the amount of calls we do to reva for any single/simple operation.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it passed so much time since the initial review that I hope I didn't repeat myself. :)
Just some comments. Please rebase as well, as there are conflicts and we cannot merge.
Ans please resolve what is still open.
Thanks
I'm sorry for the last time, I pushed incomplete commit. This time everything should be fine. |
Can you please rebase? I'm seeing tons of commits that should not be here. |
done |
Actually wait, I didn't do the rebase correctly |
This pull request introduces 8 alerts when merging d6f4a1a into a8b828c - view on LGTM.com new alerts:
|
This pull request introduces 8 alerts when merging 55eda18 into a8b828c - view on LGTM.com new alerts:
|
This pull request introduces 8 alerts when merging e1276b2 into a8b828c - view on LGTM.com new alerts:
|
This pull request introduces 8 alerts when merging 41616c5 into 6a188ba - view on LGTM.com new alerts:
|
@dagl the pipeline doesn't work because the extension is not ok. You have 2 folders (logic and utils) that are not treated as modules because they don't have the |
Ok thanks, it worked. |
This pull request introduces 8 alerts when merging 4f89f46 into 6ae505b - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One extra round. Also check the lgtm review (i.e change the except:
for except Exception:
)
cs3api4lab/utils/file_utils.py
Outdated
else: | ||
content_len = len(content.decode('utf-8')) | ||
# providing '0' as size leads to unexpected additional file creation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pinged you in some PR because this was already fixed in REVA.
This pull request introduces 8 alerts when merging 1893293 into 0a09092 - view on LGTM.com new alerts:
|
This pull request introduces 8 alerts when merging 6883807 into 0a09092 - view on LGTM.com new alerts:
|
rebase sciencemesh:master
Co-authored-by: Diogo Castro <diogo.castro@cern.ch>
rebase
Co-authored-by: Diogo Castro <diogo.castro@cern.ch>
This pull request introduces 1 alert and fixes 2 when merging d221696 into 258da93 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request fixes 2 alerts when merging eee2de4 into 258da93 - view on LGTM.com fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this after the questions I've asked (even the ones in previous reviews) are resolved.
cs3api4lab/utils/file_utils.py
Outdated
else: | ||
content_len = len(content.decode('utf-8')) | ||
# providing '0' as size leads to unexpected additional file creation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed the code, right? (At least I'm not seeing it) So please remove the comment above as well.
This pull request fixes 2 alerts when merging bb6cfed into 258da93 - view on LGTM.com fixed alerts:
|
# Conflicts: # cs3api4lab/api/lock_manager.py
This pull request fixes 2 alerts when merging 058ad2d into 258da93 - view on LGTM.com fixed alerts:
|
Locking for concurrently edited shared files. There was a need for a large refactoring because of duplicate code and not working tests.