Details
-
Bug
-
Resolution: Unresolved
-
Major
-
3.39.0, 3.38.1
-
2
-
NXRM Neo Sprint 38
-
3
-
maintenance
-
non-concept
-
3
Description
We have a customer who is trying to use the "remove member from blob store group" task to remove an old blob store. That task should move all the content from the target blob store to the next one in the group, but for some reason no content is moved.
We are unable to determine what is going wrong because there is no logging in the BlobStoreGroupMemberRemovalTask code.
Expected
All operations that 'move' or 'delete' content should have an option to log ALL changes made by that operation. For successful operations, this logging could be added by way of the audit.log if it makes sense and not already present in the task log. A summary of the operations should be present in the task specific log.
Any exceptions (including runtime exceptions) that occur of any kind during the move should also be logged in the nexus.log and task log.
If a blob is not moved for any reason the reason it was skipped should be logged. This is a separate requirement from the exception logging above, the code may be testing things before doing the move. If a test fails and the blob is skipped log the reason it was skipped.
Testing notes
- Create a couple of blob stores
- Create a blob store group with the previously created blob stores (if you want, you can assign round robin fill policy to delete any of these later)
- Create a repository with the blob store group previously created
- upload a couple of artifacts to the created repository
- set the log level to DEBUG to the package com.sonatype.nexus.blobstore.group.tasks and com.sonatype.nexus.blobstore through the UI
- schedule a "delete member from blob store group task"
- you should see the debug logs on the task log, indicating the writable state of a blob store, the transfer process between them, etc.
Attachments
Issue Links
- is depended on by
-
NEXUS-33897 Remove member from blob store group sometimes does not move all content
-
- Closed
-
- relates
-
NEXUS-34246 add logging that will explain why and what blobs were not processed by the remove member from blob store group task
-
- Closed
-