Skip to content

improve chunked-upload timeout - #2130

Open
alperozturk96 wants to merge 3 commits into
masterfrom
fix/chunked-upload-timeout
Open

improve chunked-upload timeout#2130
alperozturk96 wants to merge 3 commits into
masterfrom
fix/chunked-upload-timeout

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Tested with 2.5mb, 121.5mb, 245mb, 2GB

Changes

  • Adjust the assemble time
  • Uses Kotlin.Duration instead Int.
  • Add tests for different filesizes and assembled time

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 changed the title fix(chunked-upload) timeout improve chunked-upload timeout Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

SpotBugs

CategoryBaseNew
Bad practice3131
Correctness2828
Dodgy code1313
Internationalization66
Malicious code vulnerability2626
Multithreaded correctness77
Performance33
Security33
Total117117

@tobiasKaminsky

Copy link
Copy Markdown
Member

Bette to have it in, so that no server times out for us ✔

Mockito.`when`(file.length()).thenReturn(1 * MB)
assertEquals(sut.assembleTimeMin, sut.calculateAssembleTimeout(file))
assertEquals(
ASSEMBLE_TIME_BASE + ASSEMBLE_TIME_PER_GB / 1000,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

expected value should be hardcoded, else it does the same as calc function and thus if there is problem, it will not be seen?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Already like that. I don't get what you mean.

Image

@tobiasKaminsky

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants