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

DURACLOUD-1313: Stops synctool retrying hundreds of times #154

Merged
merged 5 commits into from Nov 11, 2021

Conversation

fozboz
Copy link
Contributor

@fozboz fozboz commented Nov 10, 2021

Fixes DURACLOUD-1313


Also includes additional commit that bumps hibernate version to resolve this issue.

Andy Foster added 2 commits November 10, 2021 15:04
In order to overcome this issue.
spring-projects/spring-boot#11225

Also had to pull back jaxb-runtime, as this is now pinned by hibernate.
We were previously creating 3 nested retry loops, first in
DuraStoreSyncEndpoint, then again in ContentIterator, ultimately
calling the `getSpace` method, which is already a `Retriable`! We
now solely rely on the retry loop created by `ContentStore.getSpace()`.
@fozboz fozboz changed the title Synctoolfix DURACLOUD-1313: Stops synctool retrying hundreds of times Nov 10, 2021
Reverted ContentIterator.

Switched out the call in spaceExists() to use getSpaceACLs() instead of
getSpaceContents() so it doesn't end up in a double loop when the space
does not exist (and therefore returns an error faster).
"activity other than sync there is the possibility " +
"of data loss.");
}
Map<String, AclType> acls =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the return value isn't used for anything, there's really no need to capture it in a variable (and leaving it out means there's no need to import AclTye either).

There is no need to do this because the return value is never used.
bbranan pushed a commit to duracloud/duracloud-db that referenced this pull request Nov 11, 2021
When running in command-line mode, it is too easy to mis-type the space
name. Next thing you know, you've got tons of content in the incorrect
space. Synctool will now error if the space does not exist.
@bbranan bbranan merged commit 74cdac0 into duracloud:develop Nov 11, 2021
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

Successfully merging this pull request may close these issues.

Buggy javassist library dependency with 2.0.0.M6
2 participants