[MDEV-15412] For any non-existing transaction ID, AS OF provides the current table contents without a warning Created: 2018-02-24 Updated: 2019-03-29 Resolved: 2019-03-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Versioned Tables |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.14, 10.4.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
bb-10.3-release 9b59f78d16fb000 |
||
| Issue Links: |
|
||||||||
| Description |
|
I couldn't find it in the current tests, so don't know if it's intentional.
|
| Comments |
| Comment by Eugene Kosov (Inactive) [ 2018-03-29 ] | ||||||||||||||||||||||||||||
|
Question is about TR_table::query_sees() algorithm. Here is my opinion. as of transaction 1 will see nothing. as of transaction big_number will see current rows. And here is the patch:
Alexey(midenok) has different opinion. He says as of unknown_trx_id should be an error. We don't know how it should work and ask you what is the correct behaviour. | ||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2018-07-27 ] | ||||||||||||||||||||||||||||
|
TRX_ID is something material. If there was a transaction, there was some TRX_ID. But unknown TRX_ID means there was no such transaction. We must not use unknown TRX_ID therefore and cannot link it to some point in time. | ||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-11-12 ] | ||||||||||||||||||||||||||||
|
I tend to agree with midenok. A transaction id means there was a transaction with this id. If there was no such a transaction, you cannot show a view as of nonexistent transaction. |