-
Notifications
You must be signed in to change notification settings - Fork 535
TDL/7493 Make BagGenerator threads configurable #8606
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
Merged
kcondon
merged 63 commits into
IQSS:develop
from
TexasDigitalLibrary:TDL/7493-make_BagGenerate_threads_configurable_only
Apr 14, 2022
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
6eae5e4
implement batch processing of new versions to archive
qqmyers 8313404
add listonly and limit options, count commandEx as failure
qqmyers 70d923a
send list in response for listonly
qqmyers 96d3723
fix query
qqmyers cb9f374
case sensitive in query
qqmyers 76e2396
param to only archive latest version
qqmyers 2e8d990
off by one in limit
qqmyers b796833
documentation
qqmyers 006a4ba
Update doc/sphinx-guides/source/installation/config.rst
qqmyers bba8ba0
Update doc/sphinx-guides/source/installation/config.rst
qqmyers 011c97a
Update doc/sphinx-guides/source/installation/config.rst
qqmyers 1a1c28c
updates per review
qqmyers 8a0ad71
Merge branch 'IQSS/7493-batch_archiving_API_call' of https://github.c…
qqmyers 7b5aead
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers fd32dfd
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers 805ff95
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers e1415f9
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers ef9a0b9
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers 9443e04
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers 242befa
Merge remote-tracking branch 'IQSS/develop' into IQSS/7493-batch_arch…
qqmyers 7047d00
Merge remote-tracking branch 'IQSS/develop' into TDL/7493-batch_archi…
qqmyers 4549f0c
TDL Bundle text
qqmyers 56ff7bc
fix thread use of requestscoped service
qqmyers 46f8554
update doc to match api call name
qqmyers 33b85f4
adjust to use a space per dataverse (alias)
qqmyers a5edb8c
Merge remote-tracking branch 'IQSS/develop' into TDL/7493-batch_archi…
qqmyers e205f4b
custom version
qqmyers 5e625a5
Merge remote-tracking branch 'IQSS/develop' into
qqmyers 53b9803
Merge remote-tracking branch 'IQSS/develop' into
qqmyers 30877d7
Use try with resources to close connections for non-200 status
qqmyers 4f354c9
munge to insure valid spaceName
qqmyers eebee96
add STANDARD cookie spec
qqmyers 3c90bbe
modify zero-file behaviour to include empty manifest
qqmyers 446063e
set non-null copy location in failure cases to avoid retries
qqmyers 5b2ef34
Refactor/fix popup logic
qqmyers 917d2d9
fix return - not clear why Eclipse didn't flag this
qqmyers 04e4ead
Use download popup's license test code, cleanup
qqmyers 9a3913d
logging/comment updates per review
qqmyers 8e49621
Try to avoid GC causing connection close
qqmyers 7fc6ba4
Clearer logging
qqmyers 26bebc8
avoid spacename with 'final . followed by a number'
qqmyers 45d6e29
Update to use join, try to provide rollback
qqmyers acb61d2
Add thread control and avoid .- in spaceName which is also prohibited
qqmyers ab8325b
add method to change thread pool size
qqmyers 5cbfd4a
avoid local var
qqmyers 8f9e7eb
don't close response in 200 case
qqmyers 14cec22
add version to datacite file
qqmyers 345c97a
add _ before version
qqmyers 1be42f5
count success/fail correctly
qqmyers 338c058
Merge remote-tracking branch 'IQSS/develop' into
qqmyers 12e284c
Merge remote-tracking branch 'IQSS/develop' into TDL/7493-batch_archi…
qqmyers 4c87e1e
removing TDL specific changes/obsolete changes
qqmyers 3526d66
change batch call to POST
qqmyers e4470bf
remove unused import
qqmyers 819447b
remove broader changes
qqmyers 48dd0e9
remove all but thread code, add Google/Local archivers
qqmyers 4a75c93
Merge remote-tracking branch 'IQSS/develop' into TDL/7493-make_BagGen…
qqmyers 3dfb0c3
document setting/function
qqmyers cd7602b
documentation update per review
qqmyers 36aa64c
add required space
qqmyers 109a4a1
Update doc/sphinx-guides/source/developers/workflows.rst
qqmyers f6cea7c
typo - remove :
qqmyers 32f3a58
Merge branch 'TDL/7493-make_BagGenerate_threads_configurable_only' of…
qqmyers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Instead of having a String here, can we keep all the database settings centralized in the
Keyenum at SettingsServiceBean?I tried this locally and the following seems to work:
public static final String BAG_GENERATOR_THREADS = SettingsServiceBean.Key.BagGeneratorThreads.toString();(I had to import SettingsServiceBean.)
I see that DuraCloudSubmitToArchiveCommand also has strings like :DuraCloudPort, :DuraCloudHost, and :DuraCloudContext hard-coded, but we could centralize those later.
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've purposely avoided that so far with the hope that at some point these archivers will be packaged separately. Right now they are loaded via reflection (you specify the classname in a property) and there should be no references to the specific Archiver classes or their properties in the main codebase. (As you note though we do have their properties in the master list in the guides so far.)
( I hope it isn't too much work for these classes and their dependencies to be pulled out into separate jars but it isn't something I know how to do off-hand - perhaps @poikilotherm?)
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.
Interesting. I guess I was under the impression that since these archiver classes/commands are in the main code base that they have to be.
It would be nice to figure out how to extract them to a different git repo. It would be a great success story of modularity in Dataverse.
Once they are truly extracted from the main code base, I suppose their documentation should be extracted too, just like we do with external tools.
It sounds like we're not there yet. That's fine. Thanks for the cleanup you did.