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

[Bug] Unexpected error when update: multiple updates to a row by the same query is not allowed #701

Closed
1 of 2 tasks
congxuebin opened this issue Nov 4, 2024 · 2 comments
Assignees
Labels
type: Bug Something isn't working

Comments

@congxuebin
Copy link
Contributor

congxuebin commented Nov 4, 2024

Cloudberry Database version

Cloudberry Database 1.0.0+9b9dd58 build commit:9b9dd5856d002c43efc16e861d05514d08951a00

What happened

/code/cbdb_testrepo_src /code
/code/cbdb_testrepo_src/test_framework/tinc.py discover mpp/gpdb/tests/storage/access_methods
....
DeltaCompressionTestCase.test_delta_out_of_order_update_delete ... 369.79 ms ... FAIL

The subsequent data miss match. I believe it is due to the update statement failure.

122c120
< UPDATE 15
---
> ERROR:  multiple updates to a row by the same query is not allowed
127,130c125,128
< 1|2147483651|2014-07-29|14:22:23.77689|2014-07-30 14:22:58.356229|2014-07-31 05:22:23.776892+08
< 1|2147483651|2014-07-29|14:22:23.77689|2014-07-30 14:22:58.356229|2014-07-31 05:22:23.776892+08
< 1|2147483651|2014-07-29|14:22:23.77689|2014-07-30 14:22:58.356229|2014-07-31 05:22:23.776892+08
< 2|2147483650|2014-07-29|14:22:23.776899|2014-07-30 14:22:58.35623|2014-07-31 05:22:23.776888+08
---
> 1|2147483648|2014-07-29|14:22:23.77689|2014-07-30 14:22:58.356229|2014-07-31 05:22:23.776892+08
> 1|2147483648|2014-07-29|14:22:23.77689|2014-07-30 14:22:58.356229|2014-07-31 05:22:23.776892+08
> 1|2147483648|2014-07-29|14:22:23.77689|2014-07-30 14:22:58.356229|2014-07-31 05:22:23.776892+08
> 2|2147483630|2014-07-29|14:22:23.776899|2014-07-30 14:22:58.35623|2014-07-31 05:22:23.776888+08
131a130
> 10|2147479999|2014-07-31|14:22:23.778899|2014-07-30 14:22:58.357229|2014-07-31 05:22:23.778899+08
135,136c134
< 10|2147483660|2014-07-31|14:22:23.778899|2014-07-30 14:22:58.357229|2014-07-31 05:22:23.778899+08
< 10|2147483660|2024-07-30|14:22:24.778899|2014-07-30 10:22:31|2014-07-31 05:22:24.776892+08
---
> 10|2147499999|2024-07-30|14:22:24.778899|2014-07-30 10:22:31|2014-07-31 05:22:24.776892+08
139,141c137,139
< 12|2147483661|2014-07-30|14:22:23.776892|2014-07-30 14:22:58.366249|2014-07-31 05:22:23.777899+08
< 13|2147483661|2014-07-30|14:22:23.776892|2014-07-30 14:22:58.366249|2014-07-31 05:22:23.777899+08
< 13|2147483661|2014-07-30|14:22:23.776892|2014-07-30 14:22:58.366249|2014-07-31 05:22:23.777899+08
---
> 12|2147483660|2014-07-30|14:22:23.776892|2014-07-30 14:22:58.366249|2014-07-31 05:22:23.777899+08
> 13|2147483660|2014-07-30|14:22:23.776892|2014-07-30 14:22:58.366249|2014-07-31 05:22:23.777899+08
> 13|2147483660|2014-07-30|14:22:23.776892|2014-07-30 14:22:58.366249|2014-07-31 05:22:23.777899+08

What you think should happen instead

No response

How to reproduce

/code/cbdb_testrepo_src /code
/code/cbdb_testrepo_src/test_framework/tinc.py discover mpp/gpdb/tests/storage/access_methods

Operating System

centos7

Anything else

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@congxuebin congxuebin added the type: Bug Something isn't working label Nov 4, 2024
@congxuebin
Copy link
Contributor Author

congxuebin commented Nov 4, 2024

Test outputs and expected results are in the following attachment.
DeltaCompressionTestCase.test_delta_out_of_order_update_delete.zip

It is related to PR #603

@congxuebin congxuebin changed the title [Bug] Unexpected error: multiple updates to a row by the same query is not allowed [Bug] Unexpected error when update: multiple updates to a row by the same query is not allowed Nov 4, 2024
@congxuebin
Copy link
Contributor Author

As confirmed with Zijie, these are as expected, thus I updated test cases accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants