-
Notifications
You must be signed in to change notification settings - Fork 0
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
HashStore-java 1.1.0 Release #48
Conversation
Hi @artntek, can you please also perform a code review when you free up next? |
src/main/java/org/dataone/hashstore/filehashstore/FileHashStoreUtility.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStoreUtility.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStoreUtility.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStoreUtility.java
Outdated
Show resolved
Hide resolved
Thank you for your feedback and code review @artntek! I have incorporated most if not all of your suggestions and resolved our conversations. If you have any other comments, please let me know 🙏 . |
src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreInterfaceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreProtectedTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dataone/hashstore/filehashstore/FileHashStorePublicTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreInterfaceTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStore.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStore.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStore.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dataone/hashstore/filehashstore/FileHashStoreUtility.java
Outdated
Show resolved
Hide resolved
Synchronizing the deleting methods doesn't help. If we really want to
delete empty directories, we should somehow lock the file system, which is
hard to do. So keeping the empty directories may be the easiest and safest
way.
…On Thu, Oct 19, 2023 at 7:20 PM Matt Jones ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
On src/main/java/org/dataone/hashstore/filehashstore/FileHashStore.java
<#48 (comment)>
:
If these are just the prefixed two digit directories, I think it is just
fine to leave them.
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5QQDHTL6KQJK6NJN4LBFLYAHNW3AVCNFSM6AAAAAA45LYXP6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTMOBZGA2TINRWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you for clarifying and the feedback @taojing2002 (and @mbjones)! I believe I've addressed all your feedback, and have pushed my latest commits to the develop branch. Please let me know if you have any concerns with these changes (or any other feedback). |
The necessary changes required to be integrated into the Metacat client have been made. However, after further discussions, we have determined that there is still one missing piece remaining to complete the 1.0.0 release described here: Refactor Additionally, the recent changes have been tested with test data found in |
… and update javadoc
…hStoreRefsFiles' and add todo items
Bug-97: `tagObject` Produces Orphaned Object
…-' file permissions on tmp file and add new junit test
… persist after moving a tmp file to its permanent location
…heck for absence of other permissions)
…ith new junit tests
Feature-108: Default Permissions on HashStore Objects
…set 'rwxr-x---' permissions
…ateParentDirectories' and add new junit tests
…reLinks' when duplicate object has been encountered
…ions Feature-111: Directory Permissions
Feature-106: Release Prep Part 1
…FileHashStore' and 'FileHashStoreLinks'
…ngChecksumException' is thrown and fix innacurate javadoc for a junit test
…StoreLinks' to be safe
…sums Feature-114: NonMatchingChecksumException hexDigests Inclusion
…an additional algorithm is included if supplied, and add new junit test for 'storeHardLink'
Summary of Changes:
HashStoreClient.java
class which can be used to interact directly with a HashStore (and respective test class).filehashstore
-FileHashStoreUtility
, which contains generic methods and methods shared betweenFileHashStore
and other classes.storeObject
without a pidfindObject
,tagObject
,verifyObject
) and updates toHashStore
interface for overload methods.deleteObject(String pid)
to delete an object, its reference files and all associated metadata documents. Plus new overload methoddeleteObject(String idType, String id)
to enable deletion of object, references files and metadata documents - or just the object itselfdeleteMetadata(String pid)
to delete all associated metadata documents for the given pidstoreMetadata
to store metadata for a givenpid
andformatId
in a directory formed by calculating the hash of the givenpid
, with the document name being the hash of theformatId
.pid
in its constructor and updatedstoreObject
methods with a pidHi @taojing2002, when you have scope - can you please help perform a code review for
HashStore-java
?