Skip to content

Conversation

@serbel324
Copy link
Collaborator

No description provided.

@serbel324 serbel324 force-pushed the bs/nodewarden/YDBREQUESTS-2898 branch from 35eb4ef to f045544 Compare January 19, 2024 12:19
@github-actions
Copy link

github-actions bot commented Jan 19, 2024

2024-01-22 12:32:34 UTC Pre-commit check for 2399bc0 has started.
2024-01-22 12:32:37 UTC Build linux-x86_64-release-asan is running...
🔴 2024-01-22 12:36:06 UTC Build failed. see the build logs.
2024-01-22 12:36:19 UTC Tests are running...
🔴 2024-01-22 14:41:09 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15918 12451 0 2421 383 663

@github-actions
Copy link

github-actions bot commented Jan 19, 2024

2024-01-22 12:32:22 UTC Pre-commit check for 2399bc0 has started.
2024-01-22 12:32:25 UTC Build linux-x86_64-relwithdebinfo is running...
🔴 2024-01-22 12:35:03 UTC Build failed. see the build logs.
2024-01-22 12:35:19 UTC Tests are running...
🔴 2024-01-22 14:29:19 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
60045 47148 0 2632 9599 666

kruall
kruall previously approved these changes Jan 19, 2024
char x[12];
TStringBuf serviceId = vdiskServiceId.ServiceId();
Y_ABORT_UNLESS(serviceId[0] == 'b' && serviceId[1] == 's' && serviceId[2] == 'v' && serviceId[3] == 'd');
if (serviceId[0] != 'b' || serviceId[1] != 's' || serviceId[2] != 'v' || serviceId[3] != 'd') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMHO было бы читабельней написать так

Y_ABORT_UNLESS(serviceId[0] == 'b' && serviceId[1] == 's' && serviceId[2] == 'v' && serviceId[3] == 'd', "Invalid VDisk's ServiceId# %s", formatServiceId(serviceId))

а цикл унести в функцию FormatServiceId

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Покопался в утиле, нашел функцию HexEncode, она примерно то же самое делает.

alexvru
alexvru previously approved these changes Jan 22, 2024
@serbel324 serbel324 dismissed stale reviews from alexvru and kruall via fe3e6bb January 22, 2024 12:29
@serbel324 serbel324 force-pushed the bs/nodewarden/YDBREQUESTS-2898 branch from fe3e6bb to 2399bc0 Compare January 22, 2024 12:31
@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
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.

4 participants