Open r33s3n6 opened 6 months ago
Hello, I am Blathers. I am here to help you get the issue triaged.
Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.
I was unable to automatically find someone to ping.
If we have not gotten back to your issue within a few business days, you can try the following:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
I apologize for accidentally mixing up the attachments for the SQL output results of these two issues(#112960 and #112961 ). I have now edited and corrected them. I'm very sorry for the confusion.
Thank you for filing the error report @r33s3n6! Using your corrected files, I have successfully reproduced on a 3-node roachprod cluster running the tip of master (379d332c9a4ce49cda4a3565a852e7ddb850ffb5).
Now that we have a repro, let's figure out how to prioritize fixing it.
Describe the problem
UNION
withORDER BY
andLIMIT
produced wrong result in multi-node version but not in single-node versionTo Reproduce First execute
init.sql
to create the table. Then executingerror.sql
yields unexpected results. Note that reproducing these results might not be entirely stable. Typically, it can be completed within three attempts. You can try executing multiple times or execute it again after rebuilding the table. init.sql.txt error.sql.txtExpected behavior The multi-node version of CockroachDB produced incorrect results. The correct result should have only been one line, but it outputted 48 lines instead. output_re_main.log output_re_single.log
Environment:
Linux a002 6.5.0-18-generic #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 11:40:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
docker compose file:
about us
We are the BASS team from the School of Cyber Science and Technology at Beihang University. Our main focus is on system software security, operating systems, and program analysis research, as well as the development of automated program testing frameworks for detecting software defects. Using our self-developed database vulnerability testing tool, we have identified the above-mentioned possible vulnerabilities that may lead to database logic error.
Jira issue: CRDB-38140