-
Notifications
You must be signed in to change notification settings - Fork 32
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
listAllDataObjectsUnderPath returns duplicate files for big folders with replica's #437
Comments
Note, I haven't tested it yet. |
I found this statement a little confusing due to the word, result set. Are you talking about a specific row or the entire set of rows? Are you finding duplicates at page boundaries only or, do you see duplicates in the middle of a page too? |
i interpret the description and the fix as only affecting boundaries. the fix gives the current call 'visibility' into the last element of a 'previous' call/page - so it can be ignored if it is a duplicate. |
The bug and suggested fix are only for the boundaries. For example, for files The suggest fix keeps track of Hope that makes it clear. |
I have not been able to reproduce this issue. What version of Jargon are you using? Do you have Jargon code which captures the issue? |
It has been pointed out to me that the issue appears when there are multiple replicas. Will adjust my test and give it another try. |
I now have a test which reproduces the issue. All that's left is to confirm PR #438 resolves it. |
We discovered that
listAllDataObjectsUnderPath
sometimes returns a "file" twice when there are over 5000 dataobjects in the path.The cause seems to be in
listDataObjectsUnderPathViaGenQuery
, this method filters out duplicate entries by checking if the previous path equals the current pathWhen the method
listAllDataObjectsUnderPath
callslistDataObjectsUnderPathViaGenQuery
multiple times in the while loop, the first result is never filtered. Although it could be the same as the result set of the previous call.https://github.com/DICE-UNC/jargon/blob/master/jargon-core/src/main/java/org/irods/jargon/core/pub/CollectionListingUtils.java#L834
The text was updated successfully, but these errors were encountered: