Fix linking object handling for EC #1329

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/object_nodes_linking into master 2024-09-04 19:51:11 +00:00
  • For linking, lock and tombstone objects put operation now saves at least parity + 1 from select N copies but not only parity + 1 copies

  • Drop object nodes optimization with flatten complex object data objects only by first member as this member can be linking object

- For linking, lock and tombstone objects put operation now saves at least `parity + 1` from `select N` copies but not only `parity + 1` copies - Drop `object nodes` optimization with flatten complex object data objects only by first member as this member can be linking object
dstepanov-yadro added 2 commits 2024-08-23 10:48:31 +00:00
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
[#9999] cli: Skip linking objects in complex object processing
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 1m42s
DCO action / DCO (pull_request) Successful in 1m54s
Vulncheck / Vulncheck (pull_request) Successful in 2m32s
Tests and linters / Tests (1.23) (pull_request) Successful in 2m41s
Tests and linters / Tests (1.22) (pull_request) Successful in 3m0s
Build / Build Components (1.22) (pull_request) Successful in 3m2s
Build / Build Components (1.23) (pull_request) Successful in 3m4s
Tests and linters / Lint (pull_request) Successful in 3m26s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m30s
Tests and linters / Staticcheck (pull_request) Successful in 4m4s
Tests and linters / Tests with -race (pull_request) Successful in 4m28s
Tests and linters / gopls check (pull_request) Successful in 4m38s
333a37703f
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro force-pushed fix/object_nodes_linking from 333a37703f to a059a7dcf0 2024-08-23 10:51:45 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2024-08-23 11:09:37 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-08-23 11:09:37 +00:00
fyrchik approved these changes 2024-08-23 12:50:48 +00:00
fyrchik reviewed 2024-08-23 12:52:15 +00:00
@ -173,3 +173,3 @@
splitInfo := errSplitInfo.SplitInfo()
if members, ok := tryGetSplitMembersByLinkingObject(cmd, splitInfo, prmHead, cnrID, false); ok {
if members, ok := tryGetSplitMembersByLinkingObject(cmd, splitInfo, prmHead, cnrID); ok {
Owner

Now we always get linking object here.
Why this doesn't affect the result?

Now we always get linking object here. Why this doesn't affect the result?
Author
Member
			if len(obj.Header().Children()) > 0 {
				// linking object is not data object, so skip it
				return nil
			}
``` if len(obj.Header().Children()) > 0 { // linking object is not data object, so skip it return nil } ```
aarifullin approved these changes 2024-08-23 13:02:00 +00:00
fyrchik merged commit a059a7dcf0 into master 2024-08-23 15:42:28 +00:00
fyrchik added this to the v0.43.0 milestone 2024-08-27 07:23:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1329
No description provided.