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

[Disk Manager] return detailed error with aborted status on wrong etag #2248

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gy2411
Copy link
Collaborator

@gy2411 gy2411 commented Oct 9, 2024

Wrong ETag error occurs during creation image from url if data from source url changed during image creation. This error shoudl not be internal.

@gy2411 gy2411 added the large-tests Launch large tests for PR label Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

Note

This is an automated comment that will be appended during run.

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 24b5257.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
6222 6221 0 1 0 0

fmt.Errorf(format, args...),
&errors.ErrorDetails{
Code: error_codes.Aborted,
Message: "data from url source changed during image creation",
Copy link
Collaborator

Choose a reason for hiding this comment

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

data from url source was changed during image creation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Я вот подумал, а не будет ли такое сообщение смущать пользователя -- не будет ли оно выглядеть так, будто это мы зачем-то изменили ему данные по url?

Copy link
Collaborator

Choose a reason for hiding this comment

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

можем тогда подробнее просто написать
can not create image because data from...

Copy link
Collaborator

Choose a reason for hiding this comment

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

но мне кажется что не должно возникать таких вопросов

@BarkovBG
Copy link
Collaborator

а теста никакого на это нет?
может напишем?

@gy2411
Copy link
Collaborator Author

gy2411 commented Oct 10, 2024

а теста никакого на это нет? может напишем?

Есть вот такая проверка, но я не уверен, насколько она эффективно работает: https://github.com/ydb-platform/nbs/blob/main/cloud/disk_manager/internal/pkg/facade/image_service_test/image_service_test.go#L594

Подумаю, как сделать лучше

@BarkovBG
Copy link
Collaborator

а теста никакого на это нет? может напишем?

Есть вот такая проверка, но я не уверен, насколько она эффективно работает: https://github.com/ydb-platform/nbs/blob/main/cloud/disk_manager/internal/pkg/facade/image_service_test/image_service_test.go#L594

Подумаю, как сделать лучше

там еще todo смущает в месте, что ты прислал. надо посмотреть что там

Copy link
Contributor

Note

This is an automated comment that will be appended during run.

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 5dbe092.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
6222 6222 0 0 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large-tests Launch large tests for PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants