Skip to content

Verify resumable upload logic #6504

Answered by coryan
shaileshkm asked this question in Q&A
May 9, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote
  • Is it correct/necessary to obtain session id after each write operation? I found a comment in header file saying 'might change during upload'.

That was a mistake, and should not appear in newer versions. If it does, let me know where.

  • Except for last data packet, I will ensure write size is in multiple of 256K.

That is more efficient, but the client library does that for you.

  • Is invocation to write atomic? In other word, could it write partial data but set an error on stream?

I do not believe there is a guarantee that the full data is committed or not, that is, the client library may successfully transmit 512KiB, and then get told that only 256KiB got written. If something lik…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shaileshkm
Comment options

@coryan
Comment options

@shaileshkm
Comment options

Answer selected by shaileshkm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants