-
Notifications
You must be signed in to change notification settings - Fork 82
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
*: update neofs-sdk-go
#3725
Conversation
Codecov ReportAttention: Patch coverage is
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. |
acebfb9
to
264dee4
Compare
264dee4
to
3387980
Compare
@AliceInHunterland, resolve conflicts, convert from draft, rebase onto fresh master. |
3387980
to
cd6e864
Compare
There was a problem hiding this 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?
Update to the version without pool panics nspcc-dev/neofs-sdk-go#643. Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
cd6e864
to
9e3f75e
Compare
Yes, I have checked both but with small values (IndexFileSize: 1000). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decode constructors are available now, u may find them useful https://github.com/nspcc-dev/neofs-sdk-go/blob/0b9bb748ea16370c9b88090a902413324e86bcf1/container/id/id.go#L40
@@ -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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-op
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Update to the version without pool panics.