Skip to content

Conversation

@SammyVimes
Copy link
Collaborator

@SammyVimes SammyVimes commented Apr 27, 2025

Changelog entry

Make PDisk handle TEvYardControl::PDiskStop in Error and Init states

Changelog category

  • Bugfix

Description for reviewers

...
Issues:
#17953

@SammyVimes SammyVimes requested a review from Copilot April 27, 2025 14:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where the PDisk stop event must be handled correctly even if the PDisk is in an error or uninitialized state. Key changes include:

  • Extraction of PDisk stop handling into a dedicated function (OnPDiskStop).
  • Addition of new unit tests to verify PDiskStop handling in both error and uninitialized states.
  • Registration of TEvReadFormatResult to an error handler for improved error state management.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut.cpp New tests added to validate PDiskStop handling under error/uninitialized conditions
ydb/core/blobstorage/pdisk/blobstorage_pdisk_actor.cpp Refactored PDiskStop handling and adjusted error handler registration
Comments suppressed due to low confidence (1)

ydb/core/blobstorage/pdisk/blobstorage_pdisk_actor.cpp:1524

  • [nitpick] Ensure that there are dedicated unit tests covering the handling of TEvReadFormatResult in the error state to confirm the intended behavior when these events are received.
hFunc(NPDisk::TEvReadFormatResult, ErrorHandle);

@github-actions
Copy link

github-actions bot commented Apr 27, 2025

🟢 2025-05-01 13:02:51 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Apr 27, 2025

2025-04-27 14:29:53 UTC Pre-commit check linux-x86_64-release-asan for 2534b94 has started.
2025-04-27 14:30:08 UTC Artifacts will be uploaded here
2025-04-27 14:32:55 UTC ya make is running...
🟡 2025-04-27 15:58:03 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
13345 13107 0 160 53 25

2025-04-27 15:59:10 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-27 16:32:24 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1278 (only retried tests) 1178 0 49 28 23

2025-04-27 16:32:40 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-27 16:58:47 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
791 (only retried tests) 693 0 43 33 22

🟢 2025-04-27 16:58:58 UTC Build successful.
🟢 2025-04-27 16:59:29 UTC ydbd size 3.8 GiB changed* by -280.8 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 8f6d662 merge: 2534b94 diff diff %
ydbd size 4 120 665 496 Bytes 4 120 377 944 Bytes -280.8 KiB -0.007%
ydbd stripped size 1 428 691 336 Bytes 1 428 550 072 Bytes -138.0 KiB -0.010%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 27, 2025

2025-04-27 14:30:19 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2534b94 has started.
2025-04-27 14:30:36 UTC Artifacts will be uploaded here
2025-04-27 14:33:26 UTC ya make is running...
🟡 2025-04-27 15:45:07 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
21105 19712 0 8 1338 47

2025-04-27 15:46:54 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-27 16:21:30 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1050 (only retried tests) 1006 0 2 1 41

2025-04-27 16:21:43 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-04-27 16:59:52 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
361 (only retried tests) 316 0 1 6 38

🟢 2025-04-27 17:00:00 UTC Build successful.
🟢 2025-04-27 17:00:29 UTC ydbd size 2.2 GiB changed* by -106.5 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 8f6d662 merge: 2534b94 diff diff %
ydbd size 2 342 297 920 Bytes 2 342 188 864 Bytes -106.5 KiB -0.005%
ydbd stripped size 492 614 024 Bytes 492 602 528 Bytes -11.2 KiB -0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 28, 2025

2025-04-28 12:29:18 UTC Pre-commit check linux-x86_64-release-asan for 530dba2 has started.
2025-04-28 12:29:36 UTC Artifacts will be uploaded here
2025-04-28 12:32:27 UTC ya make is running...
🟡 2025-04-28 13:55:15 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14374 14235 0 77 38 24

2025-04-28 13:56:31 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-28 14:23:32 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
842 (only retried tests) 742 0 44 30 26

2025-04-28 14:23:44 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-28 14:52:32 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
786 (only retried tests) 695 0 42 26 23

🟢 2025-04-28 14:52:42 UTC Build successful.
🟢 2025-04-28 14:53:15 UTC ydbd size 3.8 GiB changed* by +888 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 43ba9c4 merge: 530dba2 diff diff %
ydbd size 4 121 287 488 Bytes 4 121 288 376 Bytes +888 Bytes +0.000%
ydbd stripped size 1 428 682 904 Bytes 1 428 683 416 Bytes +512 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@SammyVimes SammyVimes requested a review from va-kuznecov April 28, 2025 12:30
@github-actions
Copy link

github-actions bot commented Apr 28, 2025

2025-04-28 12:46:01 UTC Pre-commit check linux-x86_64-relwithdebinfo for 530dba2 has started.
2025-04-28 12:46:17 UTC Artifacts will be uploaded here
2025-04-28 12:49:06 UTC ya make is running...
🟡 2025-04-28 14:07:50 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
29125 26439 0 5 2644 37

2025-04-28 14:10:19 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-28 14:34:04 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
268 (only retried tests) 224 0 0 12 32

🟢 2025-04-28 14:34:12 UTC Build successful.
🟡 2025-04-28 14:34:31 UTC ydbd size 2.2 GiB changed* by +465.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 33bb0a9 merge: 530dba2 diff diff %
ydbd size 2 342 243 864 Bytes 2 342 720 048 Bytes +465.0 KiB +0.020%
ydbd stripped size 492 613 728 Bytes 492 637 344 Bytes +23.1 KiB +0.005%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 28, 2025

2025-04-28 16:52:15 UTC Pre-commit check linux-x86_64-release-asan for 77ffff6 has started.
2025-04-28 16:52:30 UTC Artifacts will be uploaded here
2025-04-28 16:55:26 UTC ya make is running...
🟡 2025-04-28 18:21:03 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14438 14170 0 197 45 26

2025-04-28 18:22:15 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-28 18:50:27 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1299 (only retried tests) 1135 0 84 56 24

2025-04-28 18:50:42 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-28 19:20:44 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1148 (only retried tests) 1056 0 44 25 23

🟢 2025-04-28 19:21:00 UTC Build successful.
🟢 2025-04-28 19:21:37 UTC ydbd size 3.8 GiB changed* by +37.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: bf4d5a0 merge: 77ffff6 diff diff %
ydbd size 4 121 494 160 Bytes 4 121 532 040 Bytes +37.0 KiB +0.001%
ydbd stripped size 1 428 737 560 Bytes 1 428 747 736 Bytes +9.9 KiB +0.001%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 28, 2025

2025-04-28 16:54:08 UTC Pre-commit check linux-x86_64-relwithdebinfo for 77ffff6 has started.
2025-04-28 16:54:33 UTC Artifacts will be uploaded here
2025-04-28 16:57:57 UTC ya make is running...
🟡 2025-04-28 18:14:44 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
29194 26503 0 7 2647 37

2025-04-28 18:17:07 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-28 18:40:34 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
173 (only retried tests) 130 0 0 12 31

🟢 2025-04-28 18:40:41 UTC Build successful.
🟢 2025-04-28 18:41:01 UTC ydbd size 2.2 GiB changed* by +640 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: aff4b61 merge: 77ffff6 diff diff %
ydbd size 2 342 860 208 Bytes 2 342 860 848 Bytes +640 Bytes +0.000%
ydbd stripped size 492 650 624 Bytes 492 650 816 Bytes +192 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Co-authored-by: Vlad Kuznetsov <va.kuznecov@physics.msu.ru>
@github-actions
Copy link

github-actions bot commented Apr 29, 2025

2025-04-29 11:04:54 UTC Pre-commit check linux-x86_64-release-asan for 1353ab2 has started.
2025-04-29 11:05:09 UTC Artifacts will be uploaded here
2025-04-29 11:08:06 UTC ya make is running...
🟡 2025-04-29 12:36:46 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14440 14294 0 78 41 27

2025-04-29 12:37:57 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-29 13:07:30 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
877 (only retried tests) 771 0 44 36 26

2025-04-29 13:07:42 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-29 13:36:34 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
789 (only retried tests) 697 0 41 26 25

🟢 2025-04-29 13:36:45 UTC Build successful.
🟢 2025-04-29 13:37:17 UTC ydbd size 3.8 GiB changed* by +880 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 27683ed merge: 1353ab2 diff diff %
ydbd size 4 121 974 424 Bytes 4 121 975 304 Bytes +880 Bytes +0.000%
ydbd stripped size 1 428 829 720 Bytes 1 428 830 232 Bytes +512 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 29, 2025

2025-05-01 13:19:22 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1353ab2 has started.
2025-05-01 13:19:33 UTC Artifacts will be uploaded here
2025-05-01 13:22:30 UTC ya make is running...
🟡 2025-05-01 14:33:21 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
29196 26507 0 8 2638 43

2025-05-01 14:35:39 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-05-01 15:09:33 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
311 (only retried tests) 264 0 2 12 33

2025-05-01 15:09:41 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-05-01 15:31:49 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
160 (only retried tests) 124 0 0 6 30

🟢 2025-05-01 15:31:56 UTC Build successful.
🟢 2025-05-01 15:32:13 UTC ydbd size 2.2 GiB changed* by +704 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 27683ed merge: 1353ab2 diff diff %
ydbd size 2 343 136 040 Bytes 2 343 136 744 Bytes +704 Bytes +0.000%
ydbd stripped size 492 684 672 Bytes 492 684 928 Bytes +256 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions github-actions bot added bugfix and removed bugfix labels May 1, 2025
@SammyVimes SammyVimes merged commit cfede7f into ydb-platform:main May 2, 2025
21 of 22 checks passed
SammyVimes added a commit to SammyVimes/ydb that referenced this pull request May 2, 2025
@liruoko liruoko added the changelog/f25-3 PR участвует в списке изменений label Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix changelog/f25-3 PR участвует в списке изменений

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants