Skip to content
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

*: update neofs-sdk-go #3725

Merged
merged 1 commit into from
Dec 13, 2024
Merged

*: update neofs-sdk-go #3725

merged 1 commit into from
Dec 13, 2024

Conversation

AliceInHunterland
Copy link
Contributor

@AliceInHunterland AliceInHunterland commented Dec 5, 2024

Update to the version without pool panics.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.

Project coverage is 83.11%. Comparing base (f82088b) to head (9e3f75e).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
cli/util/upload_bin.go 0.00% 20 Missing ⚠️
pkg/services/blockfetcher/blockfetcher.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3725      +/-   ##
==========================================
+ Coverage   83.04%   83.11%   +0.06%     
==========================================
  Files         335      335              
  Lines       46755    46752       -3     
==========================================
+ Hits        38829    38859      +30     
+ Misses       6333     6297      -36     
- Partials     1593     1596       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AliceInHunterland AliceInHunterland marked this pull request as draft December 5, 2024 09:29
@AnnaShaleva
Copy link
Member

@AliceInHunterland, resolve conflicts, convert from draft, rebase onto fresh master.

@AliceInHunterland AliceInHunterland marked this pull request as ready for review December 13, 2024 14:01
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested the updated uploading/fetching processes?

@AnnaShaleva AnnaShaleva added this to the v0.107.2 milestone Dec 13, 2024
@AnnaShaleva AnnaShaleva added the dependencies Dealing with project dependencies label Dec 13, 2024
Update to the version without pool panics
nspcc-dev/neofs-sdk-go#643.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
@AliceInHunterland
Copy link
Contributor Author

AliceInHunterland commented Dec 13, 2024

Have you tested the updated uploading/fetching processes?

Yes, I have checked both but with small values (IndexFileSize: 1000).

@AnnaShaleva AnnaShaleva merged commit 388ee25 into master Dec 13, 2024
33 of 34 checks passed
@AnnaShaleva AnnaShaleva deleted the neofs-sdk-update branch December 13, 2024 14:52
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -140,7 +138,7 @@ func retry(action func() error, maxRetries uint, debug bool) error {
}

// uploadBlocksAndIndexFiles uploads the blocks and index files to the container using the pool.
func uploadBlocksAndIndexFiles(ctx *cli.Context, p poolWrapper, rpc *rpcclient.Client, signer user.Signer, containerID cid.ID, acc *wallet.Account, attr, indexAttributeKey string, buf []byte, currentIndexFileID, indexFileSize, currentBlockHeight uint, numWorkers, maxRetries uint, debug bool) error {
func uploadBlocksAndIndexFiles(ctx *cli.Context, p poolWrapper, rpc *rpcclient.Client, signer user.Signer, containerID cid.ID, ownerID user.ID, attr, indexAttributeKey string, buf []byte, currentIndexFileID, indexFileSize, currentBlockHeight uint, numWorkers, maxRetries uint, debug bool) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signer carries ID so u may drop ownerID prm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retry 0: failed to close object writer: status: code = 1024 message = missing object owner

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I removing hdr.SetOwner(ownerID)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hdr.SetOwner(signer.UserID())

@@ -455,7 +450,7 @@ func uploadObj(ctx context.Context, p poolWrapper, signer user.Signer, owner uti
}
res := writer.GetResult()
resOID = res.StoredObjectID()
if resOID.Equals(oid.ID{}) {
if resOID.IsZero() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is done by ObjectPutInit

hdr object.Object
prmObjectPutInit client.PrmObjectPutInit
resOID = oid.ID{}
)

ownerID.SetScriptHash(owner)
hdr.SetPayload(objData)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no-op

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is a no-op here?

Copy link
Contributor

@cthulhu-rider cthulhu-rider Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payload is unprocessed for hdr, it's written below. Object type system jukes now, but it will be improved soon nspcc-dev/neofs-sdk-go#652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dealing with project dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants