-
Notifications
You must be signed in to change notification settings - Fork 231
WIP make snapshot default mode #5517
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
base: main
Are you sure you want to change the base?
Changes from all commits
97d6573
c5fe8a5
59e4b8a
bcce4ed
3eae033
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sql_tranlevel_default blocksock |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sql_tranlevel_default blocksock |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sql_tranlevel_default blocksock |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sql_tranlevel_default blocksock |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| (version='1') | ||
| (xyz=1) | ||
| (xyz=0) | ||
| (xyz=1) | ||
| (xyz=3) | ||
| (xyz=0) | ||
| (xyz=2) | ||
| (xyz=6) | ||
| (xyz=4) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| (fingerprint='0a17a3dd4178baa9b98ef60fb54a1992', count=1, total_cost=0, total_rows=2, normalized_sql='SELECT?UNION SELECT?UNION SELECT?;') | ||
| (fingerprint='162437a391bff4c53dd483b904a05184', count=1, total_cost=0, total_rows=2, normalized_sql='EXEC PROCEDURE test_fp_close();') | ||
| (fingerprint='23476e0d735c4cf482b94c485e3d7127', count=1, total_cost=37, total_rows=7, normalized_sql='EXEC PROCEDURE test_fp();') | ||
| (fingerprint='2d4fbab7f6a9c85c75bbb7fb6b43c863', count=1, total_cost=12, total_rows=1, normalized_sql='SELECT sum(x)AS z FROM fp1;') | ||
| (fingerprint='23476e0d735c4cf482b94c485e3d7127', count=1, total_cost=40, total_rows=9, normalized_sql='EXEC PROCEDURE test_fp();') | ||
| (fingerprint='2d4fbab7f6a9c85c75bbb7fb6b43c863', count=1, total_cost=13, total_rows=1, normalized_sql='SELECT sum(x)AS z FROM fp1;') | ||
| (fingerprint='3dcb487a727f69d0d6753bf9046d642b', count=1, total_cost=0, total_rows=1, normalized_sql='EXEC PROCEDURE test_fp_emit();') | ||
| (fingerprint='5bef07d72bc6a66e49bef817dd3bab9d', count=4, total_cost=0, total_rows=4, normalized_sql='INSERT INTO fp1(x)VALUES(?);') | ||
| (fingerprint='5e7c0c2caf9a22cac49643a5a01d7760', count=1, total_cost=13, total_rows=3, normalized_sql='SELECT*FROM fp1 ORDER BY x;') | ||
|
|
@@ -43,8 +43,8 @@ end};') | |
| (fingerprint='84496375cf558c93e22ce29e18ea7187', count=1, total_cost=0, total_rows=0, normalized_sql='CREATE TABLE fp1(x integer);') | ||
| (fingerprint='b12bfa0963ad238396f59e2e1e96b218', count=1, total_cost=12, total_rows=1, normalized_sql='SELECT count(*)FROM fp1;') | ||
| (fingerprint='b16c596087126535ffc0e991e3477d8a', count=1, total_cost=0, total_rows=1, normalized_sql='SELECT?AS xyz;') | ||
| (fingerprint='c7f22188d3a63015bac874fd692fd350', count=1, total_cost=12, total_rows=2, normalized_sql='SELECT x AS w FROM fp1 ORDER BY x;') | ||
| (fingerprint='cb377fe3503a8413402ff6fdbf8d9f11', count=1, total_cost=12, total_rows=2, normalized_sql='SELECT x+x AS y FROM fp1 ORDER BY x;') | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rows increase here because the txn can see its own updates. |
||
| (fingerprint='c7f22188d3a63015bac874fd692fd350', count=1, total_cost=13, total_rows=3, normalized_sql='SELECT x AS w FROM fp1 ORDER BY x;') | ||
| (fingerprint='cb377fe3503a8413402ff6fdbf8d9f11', count=1, total_cost=13, total_rows=3, normalized_sql='SELECT x+x AS y FROM fp1 ORDER BY x;') | ||
| (fingerprint='d12630393a2ab9bf00df2f53a9355b10', count=1, total_cost=13, total_rows=1, normalized_sql='SELECT x,x+x,sum(x)FROM fp1 ORDER BY x;') | ||
| (fingerprint='e2f0f5672b403145980c4535f8ad0253', count=1, total_cost=0, total_rows=1, normalized_sql='CREATE PROCEDURE test_fp_close VERSION?{ | ||
| local function main() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| enable_snapshot_isolation | ||
| sql_tranlevel_default snapshot |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,3 +19,5 @@ dtastripe 1 | |
| utxnid_log on | ||
| ufid_log on | ||
| block_set_commit_genid_trace 1 | ||
|
|
||
| sql_tranlevel_default blocksock | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sql_tranlevel_default blocksock | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test tests that a bunch of selects that run during schema changes succeed because they go through the recover ddlk process correctly. This is not relevant for snapshot since these selects will fail. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| setattr MIN_KEEP_LOGS 2 | ||
| setattr MIN_KEEP_LOGS_AGE 10 | ||
| setattr PRIVATE_BLKSEQ_MAXAGE 20 | ||
|
|
||
| sql_tranlevel_default blocksock |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| table t1 t1.csc2 | ||
| sql_tranlevel_default blocksock |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| [SELECT * FROM t1] failed with rc -3 Failed to set transaction mode | ||
| (a=1, b=2, c=3, d=4) | ||
| (a=1, b=1, c=11, d=12) | ||
| (a=1, b=1, c=1, d=1) | ||
| (a=1, b=12, c=1, d=14) | ||
| (a=1, b=6, c=7, d=8) | ||
| (a=1, b=8, c=1, d=10) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,4 @@ dump_blkseq on | |
| extended_sql_debug_trace on | ||
| decoupled_logputs off | ||
| nowatch | ||
| sql_tranlevel_default blocksock | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| dtastripe 1 | ||
| enable_snapshot_isolation | ||
| sql_tranlevel_default blocksock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont understand this test