Repository navigation
fix: [OCISDEV-855] handle transient/InternalError storage failures in receivedsharecache retry path - #830
Merged
Conversation
… receivedsharecache retry path Backport of #751 from stable-8.0 (cherry picked from commit e28d93d). Main had the first version of the retry loop (#657). This commit replaces it with the cas package and the fixes of #751. The fix for OCISDEV-1685 needs them. Differences from #751: 1. The jsoncs3 cache packages, the cas package, the test helpers and the integration test come unchanged from #751. 2. storageprovider.go keeps the IsTooEarly case of main. It adds the cases Aborted and AlreadyExists. 3. The TooEarly check in Decomposedfs.Download is not added. Main already returns ResourceProcessing for a node in processing. 4. The changes in tree.go and the new tests for tree.go, decomposedfs.go and storageprovider.go are not added. Main changed the upload path with the upload coordinator, and the tests do not fit. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This was referenced Nov 20, 2026
mzner
approved these changes
Nov 20, 2026
deyankiteworks
approved these changes
Nov 20, 2026
2403905
added a commit
to owncloud/ocis
that referenced
this pull request
Nov 23, 2026
Update reva to the branch of owncloud/reva#832, the backport of owncloud/reva#813. It depends on owncloud/reva#830, the backport of owncloud/reva#751. A stale group share is a share ID in the group cache that has no share. On each listing of the received shares, the jsoncs3 share manager uploaded the received.json file of the user again with the same content, and the stale ID stayed. The new reva removes stale group shares, and it removes many shares with one upload for each document. The removal of shares uses at least 3 parallel removals, also when SHARING_USER_JSONCS3_MAX_CONCURRENCY is 1. The default of the setting does not change. The setting description and the changelog describe the minimum. Backport of #13460. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]>
2 of 9 tasks
2403905
added a commit
to owncloud/ocis
that referenced
this pull request
Nov 23, 2026
The reva change owncloud/reva#830 changes the ocis blobstore. When the blob file does not exist, Download now returns a NotFound error. Before, it returned an error with the text "could not read blob". The command `ocis storage-users blobstore get` printed only the NotFound text. The acceptance scenario cliCommands/blobstore.feature:44 expects the text "download failed: could not read blob". Add the text "could not read blob" to the message when the error is NotFound. The message keeps the NotFound error in the chain. Add a unit test for downloadBlob. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]>
2403905
added a commit
to owncloud/ocis
that referenced
this pull request
Nov 23, 2026
* chore(deps): [stable-9.0][OCISDEV-1685] bump reva Update reva to the stable-9.0 branch at f6b50353c. The update includes these changes: 1. owncloud/reva#831 handles transient storage errors in the retry path of the received share cache. 2. owncloud/reva#829 reads the NATS credentials file once for each connection attempt. The pull request for OCISDEV-1685 needs the first change. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]> * fix: [OCISDEV-1685] keep the blob read message in the blobstore CLI The reva change owncloud/reva#830 changes the ocis blobstore. When the blob file does not exist, Download now returns a NotFound error. Before, it returned an error with the text "could not read blob". The command `ocis storage-users blobstore get` printed only the NotFound text. The acceptance scenario cliCommands/blobstore.feature:44 expects the text "download failed: could not read blob". Add the text "could not read blob" to the message when the error is NotFound. The message keeps the NotFound error in the chain. Add a unit test for downloadBlob. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]> (cherry picked from commit 4f104bb) Signed-off-by: Roman Perekhod <[email protected]> * docs: [stable-9.0][OCISDEV-1685] add the changelog for the reva bump Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]> --------- Signed-off-by: Roman Perekhod <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2403905
added a commit
to owncloud/ocis
that referenced
this pull request
Nov 23, 2026
* chore(deps): [OCISDEV-1685] bump reva Update reva to the main branch at cbb65e2fd. The update includes these changes: 1. owncloud/reva#830 handles transient storage errors in the retry path of the received share cache. 2. owncloud/reva#828 reads the NATS credentials file once for each connection attempt. The pull request for OCISDEV-1685 needs the first change. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]> * fix: [OCISDEV-1685] keep the blob read message in the blobstore CLI The reva change owncloud/reva#830 changes the ocis blobstore. When the blob file does not exist, Download now returns a NotFound error. Before, it returned an error with the text "could not read blob". The command `ocis storage-users blobstore get` printed only the NotFound text. The acceptance scenario cliCommands/blobstore.feature:44 expects the text "download failed: could not read blob". Add the text "could not read blob" to the message when the error is NotFound. The message keeps the NotFound error in the chain. Add a unit test for downloadBlob. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]> --------- Signed-off-by: Roman Perekhod <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2403905
added a commit
to owncloud/ocis
that referenced
this pull request
Nov 23, 2026
Update reva to the branch of owncloud/reva#832, the backport of owncloud/reva#813. The branch is on top of the merged owncloud/reva#830. A stale group share is a share ID in the group cache that has no share. On each listing of the received shares, the jsoncs3 share manager uploaded the received.json file of the user again with the same content, and the stale ID stayed. The new reva removes stale group shares, and it removes many shares with one upload for each document. The removal of shares uses at least 3 parallel removals, also when SHARING_USER_JSONCS3_MAX_CONCURRENCY is 1. The default of the setting does not change. The setting description and the changelog describe the minimum. Backport of #13460. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Roman Perekhod <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport of #751 to
main.Why
The fix for OCISDEV-1685 (#813) builds on the
caspackage of #751.mainhas only the first version of the retry loop (#657). Without #751, #813 does not apply tomain.Change
Same as #751: the
caspackage and the fixes for the retry path of the jsoncs3 caches (providercache,receivedsharecache,sharecache), the barrier and trash checks in the metadata storage, and the new error types.Differences from #751
caspackage, the test helpers and the integration test are the files of fix: [OCISDEV-855] handle transient/InternalError storage failures in receivedsharecache retry path #751. They replace the feat: [OCISDEV-855] receivedsharecache: retry on transient storage errors in CAS loop #657 version.internal/grpc/services/storageprovider/storageprovider.gokeeps theIsTooEarlycase. It adds the casesAbortedandAlreadyExists.TooEarlycheck inDecomposedfs.Download.mainalready returnsResourceProcessingfor a node in processing.tree.goand the new tests fortree.go,decomposedfs.goandstorageprovider.go. This branch has the upload coordinator, and these changes and tests do not fit.Tests
go test -racepasses for./pkg/share/manager/jsoncs3/...,./pkg/errtypes/...,./pkg/storage/utils/metadata/...,./pkg/storage/fs/ocis/blobstore/...,./internal/grpc/services/storageprovider/...and./pkg/storage/utils/decomposedfs/.receivedsharecache_concurrent_test.gopasses with a localrevad.Changelog
No entry, as in #751.
🤖 Generated with Claude Code