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

Fix grace join UUID encoding #3656

Merged
merged 3 commits into from
May 23, 2024

Conversation

yumkam
Copy link
Collaborator

@yumkam yumkam commented Apr 10, 2024

Changelog entry

Fix Uuid handling in mkql_grace_join

Changelog category

  • Bugfix

Additional information

I noticed something weird while reading the code: I believe there are missing break; statement in handling Uuid's; also note mismatch between Uuid handling and string-alike handling, this is yet another bug (mostly easily fixed by unifying string-alike and Uuid handling).
I added very crude test (just copied another and replaced strings with Uuid). It fails when applied alone, still fails with only break added, and passes with complete series applied.
Compile-tested, limited runtime-tested (my machine is too weak to handle even single round of compilation).

@yumkam yumkam requested a review from a team as a code owner April 10, 2024 20:39
Copy link

Hi! Thank you for contributing!
The tests on this PR will run after a maintainer adds an ok-to-test label to this PR manually. Thank you for your patience!

@yumkam
Copy link
Collaborator Author

yumkam commented Apr 12, 2024

Also, why was not this bug (well, first half of this bug) caught in by static analysis (aka warning): it seems missing -Wimplicit-fallthrough (implied by -Wextra in gcc, but not in clang).

@yumkam yumkam force-pushed the fix-grace-join-uuid-encoding branch from da765bb to 79c5775 Compare April 23, 2024 05:15
@yumkam yumkam force-pushed the fix-grace-join-uuid-encoding branch 3 times, most recently from a82cbe5 to 2217034 Compare May 6, 2024 21:13
Copy link

github-actions bot commented May 6, 2024

2024-05-06 21:17:04 UTC Pre-commit check for 347e262 has started.
2024-05-06 21:17:05 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-06 22:32:03 UTC Build successful.

Copy link

github-actions bot commented May 6, 2024

2024-05-06 21:17:12 UTC Pre-commit check for 347e262 has started.
2024-05-06 21:17:14 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-06 21:20:29 UTC Build successful.
2024-05-06 21:22:11 UTC Tests are running...
🔴 2024-05-06 23:16:48 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
70025 56922 0 3 13087 13

Copy link

github-actions bot commented May 6, 2024

2024-05-06 21:17:18 UTC Pre-commit check for 347e262 has started.
2024-05-06 21:17:21 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-06 21:20:16 UTC Build successful.
2024-05-06 21:21:59 UTC Tests are running...
🔴 2024-05-06 23:11:18 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11382 11266 0 41 65 10

supposed to fail before fixes applied
... by unifying with other string-alikes.
Notice
auto str = TuplePtrs[i]->AsStringRef();
vs.
auto str = TuplePtrs[pi.ColumnIdx]->AsStringRef();
Former seems a bug (and fails tests).
@yumkam yumkam force-pushed the fix-grace-join-uuid-encoding branch from 2217034 to 4310d4a Compare May 22, 2024 13:00
Copy link

github-actions bot commented May 22, 2024

2024-05-22 13:03:36 UTC Pre-commit check for aae6390 has started.
2024-05-22 13:03:38 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-22 13:06:59 UTC Build successful.
2024-05-22 13:08:44 UTC Tests are running...
🔴 2024-05-22 15:01:37 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
70746 58047 0 2 12692 5

Copy link

github-actions bot commented May 22, 2024

2024-05-22 13:04:19 UTC Pre-commit check for aae6390 has started.
2024-05-22 13:04:21 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-22 13:08:23 UTC Build successful.
2024-05-22 13:10:12 UTC Tests are running...
🔴 2024-05-22 15:11:19 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11774 11666 0 37 60 11

Copy link

github-actions bot commented May 22, 2024

2024-05-22 13:05:36 UTC Pre-commit check for aae6390 has started.
2024-05-22 13:05:38 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-22 13:36:42 UTC Build successful.

@yumkam yumkam requested a review from aakulaga-ydb May 22, 2024 15:41
@aakulaga-ydb aakulaga-ydb merged commit 7d3ab3b into ydb-platform:main May 23, 2024
3 of 5 checks passed
MrLolthe1st pushed a commit to MrLolthe1st/ydb that referenced this pull request May 28, 2024
@niksaveliev niksaveliev mentioned this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants