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

feat(mvp): allow dirs as source paths for export operation #27

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

ulya-sidorina
Copy link
Collaborator

No description provided.

Copy link

📝 Test results

ydbcp

15 tests (15 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 15

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries2008ms
🧪 Tests
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_Write
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-07-25T15:46:36.500Z	DEBUG	queries/read.go:145	read query	{"yql": "DECLARE $param0 AS String;\nDECLARE $param1 AS String;\nDECLARE $param2 AS String;\nDECLARE $param3 AS String;\nSELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_Write
2024-07-25T15:46:36.501Z	DEBUG	queries/write.go:192	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $status_0 AS String;\nUPSERT INTO Backups (id, status) VALUES ($id_0, $status_0);\nDECLARE $id_1 AS Uuid;\nDECLARE $status_1 AS String;\nDECLARE $message_1 AS String;\nUPSERT INTO Operations (id, status, message) VALUES ($id_1, $status_1, $message_1)"}
--- PASS: TestQueryBuilder_Write (0.00s)
🟢 ydbcp/internal/handlers11009ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandler
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "0cddb9d0-5527-43cb-a927-c7ef31308d7e", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "0cddb9d0-5527-43cb-a927-c7ef31308d7e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "e0d52093-428b-4cbb-975b-44ebefb1cd89", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "e0d52093-428b-4cbb-975b-44ebefb1cd89", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:110	cancelling operation due to ttl	{"id": "e0d52093-428b-4cbb-975b-44ebefb1cd89", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "3455edcd-39ac-4f61-bb04-6a42cd6cee31", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "3455edcd-39ac-4f61-bb04-6a42cd6cee31", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "6b96f7f5-94c3-4804-be16-17b8e52bfb2f", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "6b96f7f5-94c3-4804-be16-17b8e52bfb2f", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "6b96f7f5-94c3-4804-be16-17b8e52bfb2f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "023d846c-efca-4b43-bd6e-c0aac3072efe", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "023d846c-efca-4b43-bd6e-c0aac3072efe", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T15:46:36.990Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "023d846c-efca-4b43-bd6e-c0aac3072efe", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "190279d0-dc11-4907-9ed9-99af237224fd", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "190279d0-dc11-4907-9ed9-99af237224fd", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "9971a228-4821-4713-bd6c-8f0a55b9126e", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "9971a228-4821-4713-bd6c-8f0a55b9126e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "10e08f23-cac4-4b72-8451-56b4da461b34", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "10e08f23-cac4-4b72-8451-56b4da461b34", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "10e08f23-cac4-4b72-8451-56b4da461b34", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "6c4da72c-d5d1-41ae-bb92-3b723e50ae55", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "6c4da72c-d5d1-41ae-bb92-3b723e50ae55", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "6c4da72c-d5d1-41ae-bb92-3b723e50ae55", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "15ff80fd-7061-425f-bb06-658e00c575f4", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "15ff80fd-7061-425f-bb06-658e00c575f4", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T15:46:36.991Z	INFO	handlers/restore_backup.go:87	received retriable error	{"id": "15ff80fd-7061-425f-bb06-658e00c575f4", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandler
--- PASS: TestTBOperationHandler (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-07-25T15:46:36.989Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:118	start operation handler	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "e9dd5f92-2f57-4858-8a2c-940fadaefd63"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto0000ms
🧪 Tests(none)
🖨️ Output
(none)

@ulya-sidorina ulya-sidorina marked this pull request as ready for review July 25, 2024 15:47
@ulya-sidorina ulya-sidorina linked an issue Jul 25, 2024 that may be closed by this pull request
@ulya-sidorina ulya-sidorina changed the title feat(mvp): allow pass dirs as source paths for export operation feat(mvp): allow dirs as source paths for export operation Jul 25, 2024
Copy link

📝 Test results

ydbcp

15 tests (15 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 15

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries2007ms
🧪 Tests
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_Write
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-07-25T16:18:49.378Z	DEBUG	queries/read.go:145	read query	{"yql": "DECLARE $param0 AS String;\nDECLARE $param1 AS String;\nDECLARE $param2 AS String;\nDECLARE $param3 AS String;\nSELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_Write
2024-07-25T16:18:49.378Z	DEBUG	queries/write.go:192	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $status_0 AS String;\nUPSERT INTO Backups (id, status) VALUES ($id_0, $status_0);\nDECLARE $id_1 AS Uuid;\nDECLARE $status_1 AS String;\nDECLARE $message_1 AS String;\nUPSERT INTO Operations (id, status, message) VALUES ($id_1, $status_1, $message_1)"}
--- PASS: TestQueryBuilder_Write (0.00s)
🟢 ydbcp/internal/handlers11009ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandler
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "fa4ae1c1-862e-4e4a-9714-fd875fc5c9a8", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "fa4ae1c1-862e-4e4a-9714-fd875fc5c9a8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "d13ae71a-e7f9-4696-a1b0-0501c1a02fc8", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "d13ae71a-e7f9-4696-a1b0-0501c1a02fc8", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:110	cancelling operation due to ttl	{"id": "d13ae71a-e7f9-4696-a1b0-0501c1a02fc8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "b21f6779-4aa6-42d4-b662-24237bb981ad", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T16:18:49.734Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "b21f6779-4aa6-42d4-b662-24237bb981ad", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "316fb14a-080b-48d9-9a0f-94c0d2cd5dba", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "316fb14a-080b-48d9-9a0f-94c0d2cd5dba", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "316fb14a-080b-48d9-9a0f-94c0d2cd5dba", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "cd22a53a-5cc0-4fd1-82fc-6fee39880a7d", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "cd22a53a-5cc0-4fd1-82fc-6fee39880a7d", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "cd22a53a-5cc0-4fd1-82fc-6fee39880a7d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "d3a72791-d303-45c5-988b-f771e6fa2b0b", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "d3a72791-d303-45c5-988b-f771e6fa2b0b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "6e7b3faa-0a79-4843-a09c-637e000b639f", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "6e7b3faa-0a79-4843-a09c-637e000b639f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "cf1ef8bf-91bb-4f6d-ad04-354ce934ea8f", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "cf1ef8bf-91bb-4f6d-ad04-354ce934ea8f", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "cf1ef8bf-91bb-4f6d-ad04-354ce934ea8f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "a712a461-30cf-42ab-9a4a-6dedd19441b6", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "a712a461-30cf-42ab-9a4a-6dedd19441b6", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "a712a461-30cf-42ab-9a4a-6dedd19441b6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "598d9e7a-0333-4fb7-b74f-a1ef2968b391", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "598d9e7a-0333-4fb7-b74f-a1ef2968b391", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T16:18:49.735Z	INFO	handlers/restore_backup.go:87	received retriable error	{"id": "598d9e7a-0333-4fb7-b74f-a1ef2968b391", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandler
--- PASS: TestTBOperationHandler (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-07-25T16:18:49.733Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-07-25T16:18:49.734Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id b3739e90-53af-4830-882c-7587d58a2671, type TB, state PENDING"}
2024-07-25T16:18:49.734Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id b3739e90-53af-4830-882c-7587d58a2671, type TB, state PENDING"}
2024-07-25T16:18:49.734Z	DEBUG	processor/processor.go:118	start operation handler	{"operation": "Operation, id b3739e90-53af-4830-882c-7587d58a2671, type TB, state PENDING"}
2024-07-25T16:18:49.734Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id b3739e90-53af-4830-882c-7587d58a2671, type TB, state PENDING"}
2024-07-25T16:18:49.734Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "b3739e90-53af-4830-882c-7587d58a2671"}
2024-07-25T16:18:49.734Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto0000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

15 tests (15 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 15

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries2002ms
🧪 Tests
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_Write
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-07-25T15:46:36.500Z	DEBUG	queries/read.go:145	read query	{"yql": "DECLARE $param0 AS String;\nDECLARE $param1 AS String;\nDECLARE $param2 AS String;\nDECLARE $param3 AS String;\nSELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_Write
2024-07-25T15:46:36.501Z	DEBUG	queries/write.go:192	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $status_0 AS String;\nUPSERT INTO Backups (id, status) VALUES ($id_0, $status_0);\nDECLARE $id_1 AS Uuid;\nDECLARE $status_1 AS String;\nDECLARE $message_1 AS String;\nUPSERT INTO Operations (id, status, message) VALUES ($id_1, $status_1, $message_1)"}
--- PASS: TestQueryBuilder_Write (0.00s)
🟢 ydbcp/internal/handlers110010ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandler
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-07-25T17:19:56.793Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "0bff2540-63d4-4f90-85f4-5e2229554d97", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:19:56.793Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "0bff2540-63d4-4f90-85f4-5e2229554d97", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "c476402e-6ce2-473b-bc49-64f515de8596", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "c476402e-6ce2-473b-bc49-64f515de8596", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:110	cancelling operation due to ttl	{"id": "c476402e-6ce2-473b-bc49-64f515de8596", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "06db1535-848a-4001-a59a-102d77f46840", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "06db1535-848a-4001-a59a-102d77f46840", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "6dae3afa-228a-4015-a3d8-2e1880ee099f", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "6dae3afa-228a-4015-a3d8-2e1880ee099f", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "6dae3afa-228a-4015-a3d8-2e1880ee099f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "085d2591-e79c-4d56-9f90-c87bfebd975a", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "085d2591-e79c-4d56-9f90-c87bfebd975a", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "085d2591-e79c-4d56-9f90-c87bfebd975a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "4e4ee482-0ab5-4e93-9516-38249b62ae33", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "4e4ee482-0ab5-4e93-9516-38249b62ae33", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "c73b231c-6d56-49cb-a97b-a1d55bb21713", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "c73b231c-6d56-49cb-a97b-a1d55bb21713", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "734524bb-a52a-418e-a97f-101c3779a1b1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "734524bb-a52a-418e-a97f-101c3779a1b1", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "734524bb-a52a-418e-a97f-101c3779a1b1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "6c9d212b-363d-4a19-9336-b61d620d3182", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "6c9d212b-363d-4a19-9336-b61d620d3182", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "6c9d212b-363d-4a19-9336-b61d620d3182", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "d9a1f703-2738-483a-95fc-1a8c18c7f523", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "d9a1f703-2738-483a-95fc-1a8c18c7f523", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:19:56.794Z	INFO	handlers/restore_backup.go:87	received retriable error	{"id": "d9a1f703-2738-483a-95fc-1a8c18c7f523", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandler
--- PASS: TestTBOperationHandler (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-07-25T15:46:36.989Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:118	start operation handler	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "e9dd5f92-2f57-4858-8a2c-940fadaefd63"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto0000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

15 tests (15 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 15

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries2002ms
🧪 Tests
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_Write
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-07-25T15:46:36.500Z	DEBUG	queries/read.go:145	read query	{"yql": "DECLARE $param0 AS String;\nDECLARE $param1 AS String;\nDECLARE $param2 AS String;\nDECLARE $param3 AS String;\nSELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_Write
2024-07-25T15:46:36.501Z	DEBUG	queries/write.go:192	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $status_0 AS String;\nUPSERT INTO Backups (id, status) VALUES ($id_0, $status_0);\nDECLARE $id_1 AS Uuid;\nDECLARE $status_1 AS String;\nDECLARE $message_1 AS String;\nUPSERT INTO Operations (id, status, message) VALUES ($id_1, $status_1, $message_1)"}
--- PASS: TestQueryBuilder_Write (0.00s)
🟢 ydbcp/internal/handlers11009ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandler
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "70f337a9-65aa-4797-bcfa-cac3d062e2d9", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "70f337a9-65aa-4797-bcfa-cac3d062e2d9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "9880a0f8-e8eb-4464-aa7f-3b96a4021621", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "9880a0f8-e8eb-4464-aa7f-3b96a4021621", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:110	cancelling operation due to ttl	{"id": "9880a0f8-e8eb-4464-aa7f-3b96a4021621", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "8be057e4-632f-4f8a-a9e3-530d392b119c", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "8be057e4-632f-4f8a-a9e3-530d392b119c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "3c6d8edd-2116-400d-8bd1-be9fd4483f2e", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "3c6d8edd-2116-400d-8bd1-be9fd4483f2e", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:35:11.891Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "3c6d8edd-2116-400d-8bd1-be9fd4483f2e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "e3ec3777-b514-492c-96ff-445df250397b", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "e3ec3777-b514-492c-96ff-445df250397b", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "e3ec3777-b514-492c-96ff-445df250397b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "eaf72726-c730-4b4b-94c3-e7dd7b9792ac", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "eaf72726-c730-4b4b-94c3-e7dd7b9792ac", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "30e166a6-c485-47cd-b0e0-d69f122a5247", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "30e166a6-c485-47cd-b0e0-d69f122a5247", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "66c3ac8b-fe05-411c-b0a4-691e5a7a1843", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "66c3ac8b-fe05-411c-b0a4-691e5a7a1843", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "66c3ac8b-fe05-411c-b0a4-691e5a7a1843", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "9d24b06d-c7ca-49cb-a423-83ff680a5974", "type": "RB", "state": "CANCELLING", "message": ""}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "9d24b06d-c7ca-49cb-a423-83ff680a5974", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:173	forgetting operation	{"id": "9d24b06d-c7ca-49cb-a423-83ff680a5974", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:37	received operation	{"id": "39174647-ed87-4fcb-8318-64ba697c2625", "type": "RB", "state": "PENDING", "message": ""}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:64	getting operation status	{"id": "39174647-ed87-4fcb-8318-64ba697c2625", "type": "RB", "ydb_operation_id": "1"}
2024-07-25T17:35:11.892Z	INFO	handlers/restore_backup.go:87	received retriable error	{"id": "39174647-ed87-4fcb-8318-64ba697c2625", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandler
--- PASS: TestTBOperationHandler (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-07-25T15:46:36.989Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:118	start operation handler	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id e9dd5f92-2f57-4858-8a2c-940fadaefd63, type TB, state PENDING"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "e9dd5f92-2f57-4858-8a2c-940fadaefd63"}
2024-07-25T15:46:36.990Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto0000ms
🧪 Tests(none)
🖨️ Output
(none)

@ulya-sidorina ulya-sidorina requested review from bma13 and qrort July 25, 2024 17:36
@bma13 bma13 merged commit dad80d3 into main Jul 26, 2024
1 check passed
@bma13 bma13 deleted the feature/ydbcp-22 branch July 26, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[[YDBCP]]: list directory for export
2 participants