-
Notifications
You must be signed in to change notification settings - Fork 10
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
implement preserve.replicas when restaging files #234
implement preserve.replicas when restaging files #234
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.
Yep, looks good. We (iRODS team) will discuss how we want to approach adding an automated test for this (as @trel described in #233 (comment)). In the meantime, feel free to take a swing at it yourself. ;)
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 went ahead and wrote a test for this and may have discovered an issue with the fix. Please confirm that suggested fix works for your use case.
We have to think about it. It works as follows for a restage:
And in this stage it fails because the replica and group version do not match. |
Changed one query:
This makes sure that the function |
I left a comment in #232 regarding the query update: #232 (comment) |
I made it a draft pull request. |
We can also translate your bash tests into python if that helps. |
I tried running the python tests on my system. But the first thing it does is stop the iRODS server :( I will try to get it running in a similar fashion as the iRODS tests. This will make it easier to incorporate. But it will take some time to get some proper tests together. |
That's correct. The Tests which depend on the delay server (like this project) normally restart the server too. We're happy to help you cross the finish line :-) |
Forgot to mention that you can use the iRODS Development Environment to run the tests easier. See https://github.com/irods/irods_development_environment. With that, you can use the plugin builder and plugin test runners to build and test. |
Updated Renamed one test to tested:
|
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.
Thanks for writing these tests! I think that the first test you wrote covers the ground and we probably don't need the other tests. I could be wrong, so please let me know if I misunderstood anything.
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.
Looking very good. Saw one trailing space that I'm guessing was not on purpose.
I think we are almost ready to squash this. @cookie33 - Are you comfortable squashing this down to 1 or 2 commits? I would suggest 1 commit for #232 and 1 commit for #233 with commit messages like this:
[#232] My super helpful commit title
And maybe a description with the what and why, if you're into it.
If you're busy, we can swizzle the commits (your authorship will be retained). Up to you!
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.
Commits swizzled locally. Build succeeded. Running tests. Once these have passed, I'll put this in.
Great work, @cookie33!
…nit than the replication number
2daa727
to
7fd7b7e
Compare
Confirmed that tests are passing. Added #s. Merging. |
Implement fix for: #233