-
Notifications
You must be signed in to change notification settings - Fork 23
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] Fix disk manager tests after updating StatVolume behaviour #2924
base: main
Are you sure you want to change the base?
Conversation
cloud/blockstore/libs/storage/service/service_actor_destroy.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_statvolume.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_statvolume.cpp
Outdated
Show resolved
Hide resolved
76e53ee
to
a2e5de5
Compare
d5c00e9
to
875bc6d
Compare
875bc6d
to
15301c7
Compare
cloud/disk_manager/internal/pkg/dataplane/snapshot/storage/storage_ydb_test.go
Outdated
Show resolved
Hide resolved
cloud/disk_manager/internal/pkg/facade/snapshot_service_test/snapshot_service_test.go
Show resolved
Hide resolved
cloud/disk_manager/internal/pkg/facade/snapshot_service_test/snapshot_service_test.go
Outdated
Show resolved
Hide resolved
// Should wait here because checkpoint is deleted on |createOp| operation | ||
// cancel (and exact time of this event is unknown). |
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.
комментарий внутрь ифа
// Should wait here because checkpoint is deleted on |createOp| operation | ||
// cancel (and exact time of this event is unknown). |
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.
- свеху ифа комментарий почему мы так делаем
cloud/disk_manager/internal/pkg/facade/snapshot_service_test/snapshot_service_test.go
Show resolved
Hide resolved
@@ -758,13 +764,13 @@ func TestSnapshotServiceDeleteSnapshotWhenCreationIsInFlight(t *testing.T) { | |||
err = internal_client.WaitOperation(ctx, client, operation.Id) | |||
require.NoError(t, err) | |||
|
|||
_ = internal_client.WaitOperation(ctx, client, createOp.Id) | |||
createErr := internal_client.WaitOperation(ctx, client, createOp.Id) |
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.
просто err
// TODO: enable this check after resolving issue | ||
// https://github.com/ydb-platform/nbs/issues/2008. | ||
// testcommon.WaitForCheckpointsAreEmpty(t, ctx, diskID) | ||
if createErr != nil { |
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.
выше ифа надо написать почему мы ждем чекпоинты только если создание успешное
@@ -604,17 +605,22 @@ func TestSnapshotServiceDeleteIncrementalSnapshotWhileCreating(t *testing.T) { | |||
err = internal_client.WaitOperation(ctx, client, deleteOperation.Id) | |||
require.NoError(t, err) | |||
|
|||
//nolint:sa9003 | |||
// TODO: remove line above after | |||
// https://github.com/ydb-platform/nbs/issues/2008 | |||
if creationErr == nil { |
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.
тут сверху ифа нужно рассказать, почему у нас две ветки в зависимости от ошибки создания
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.
1 - снапшот успел создастся, а затем удалиться - тогда чепоинта не должно быть
// If there is a record about this disk left in incrementality table, | ||
// checkpoint that corresponds to base snapshot should not be deleted. |
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.
тут нужо рассказать, что в случае неуспешного создания может быть два сценария
если мы успели потереть данные про baseSnapshotID из таблицы инкрементальности или нет
типо:
// in case of snapshot creation failure baseSnapshot may be already deleted from incremental table and then checkpoint should not exist on the disk.
// Otherwise checkpoint should exist
что-то такое
из твоего комментария вообще не понятно что происходит и почему так
#2008 — Fixed Dm tests, that depend on StatVolume.